Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (19 sloc) 0.714 kb
# stop hostapd before replacing it
sudo service hostapd stop
# if we're not already using the original, switch
if [ -f /usr/sbin/hostapd_original ];
then
# use the original binary hostapd, for the Wi-Pi
sudo rm /usr/sbin/hostapd 2> /dev/null
sudo ln -s /usr/sbin/hostapd_original /usr/sbin/hostapd
sudo chmod +x /usr/sbin/hostapd
fi
# if we're not already using the original conf, switch
if [ -f /etc/hostapd/hostapd_original.conf ];
then
# use the hostapd config file for the Edimax EW-7811Un
sudo rm /etc/hostapd/hostapd.conf 2> /dev/null
sudo ln -s /etc/hostapd/hostapd_original.conf /etc/hostapd/hostapd.conf
fi
# restart hostapd with the new settings
sudo service hostapd start
Jump to Line
Something went wrong with that request. Please try again.