Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 33 lines (20 sloc) 612 Bytes
if [ "$EUID" -ne 0 ];
then echo "This script needs root... run with sudo"
exit
fi
if [ ! -f ./apfiles/ap_active ]
then echo "AP not active... ending"
exit
fi
rm ./apfiles/ap_active
update-rc.d hostapd disable
update-rc.d dnsmasq disable
mv /etc/dhcpcd.conf.bak /etc/dhcpcd.conf
chown :pi /etc/dhcpcd.conf
mv /etc/network/interfaces.bak /etc/network/interfaces
mv /etc/hostapd/hostapd.conf.bak /etc/hostapd/hostapd.conf
mv /etc/default/hostapd.bak /etc/default/hostapd
mv /etc/dnsmasq.conf.bak /etc/dnsmasq.conf
mv /etc/sysctl.conf.bak /etc/sysctl.conf
mv /etc/rc.local.bak /etc/rc.local
reboot
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.