blob: b2e25f3bf0aeda34939fe784ee94aa4c1125b701 [file] [log] [blame]
Ankur Vachhanie1b4fbc2011-12-26 09:40:02 +00001#!/bin/bash
Dake Zhao97708202014-11-26 13:59:04 -08002
3#
Alan Tsaidfafa3a2016-09-23 16:53:35 -07004# Copyright (c) 2016 Wi-Fi Alliance
Dake Zhao97708202014-11-26 13:59:04 -08005#
6# Permission to use, copy, modify, and/or distribute this software for any
7# purpose with or without fee is hereby granted, provided that the above
8# copyright notice and this permission notice appear in all copies.
9#
10# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
13# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
14# RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
15# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
16# USE OR PERFORMANCE OF THIS SOFTWARE.
17#
18
Ankur Vachhanie1b4fbc2011-12-26 09:40:02 +000019#To install the build essentials
20
Alan Tsaidfafa3a2016-09-23 16:53:35 -070021lsb_release -a | grep Release: | grep 6.*
22if [ $? -eq 0 ]
23then
Ankur Vachhanie1b4fbc2011-12-26 09:40:02 +000024cp /etc/apt/sources.list /etc/apt/sources.list.orig
25cp -f sources.list /etc/apt
Alan Tsaidfafa3a2016-09-23 16:53:35 -070026fi
Ankur Vachhanie1b4fbc2011-12-26 09:40:02 +000027apt-get update
28
29echo y > yfile
30apt-get install build-essential < yfile
31
32rm yfile