Mercurial > hg > fD-testbed
view scripts/hostapd-install.sh @ 0:9e5a3c884de6
Initial import of the virtual testbed.
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Thu, 17 Jun 2010 11:00:32 +0900 |
parents | |
children |
line wrap: on
line source
#!/bin/bash -x # Install dependencies apt-get build-dep hostapd || exit 1 aptitude install linux-backports-modules-karmic-generic-pae || exit 1 # Install the link to the configuration /home/aaa/installvm.sh conflink # Test build directive file if ! [ -f /root/conf/hostapd/build.config ]; then echo Missing build config file; exit 1; fi # We need the radio emulation driver as well, check it was correctly installed. modprobe mac80211_hwsim || exit 1 # Build hostapd rm -rf /root/hostapd cp -Rs /home/aaa/src/hostap /root/hostapd ln -s /root/conf/hostapd/build.config /root/hostapd/hostapd/.config cd /root/hostapd/hostapd && make || exit 1