kopia lustrzana https://github.com/cyoung/stratux
Eliminate wifi_watch.sh by using post-up.
rodzic
a6ffea0122
commit
b38045da03
|
@ -70,10 +70,6 @@ echo export GOROOT=/root/go >>/root/.bashrc
|
|||
echo export GOPATH=/root/go_path >>/root/.bashrc
|
||||
|
||||
|
||||
#wifi watch
|
||||
cp -f wifi_watch.sh mnt/usr/sbin/wifi_watch.sh
|
||||
chmod +x mnt/usr/sbin/wifi_watch.sh
|
||||
|
||||
#rtl-sdr setup
|
||||
echo blacklist dvb_usb_rtl28xxu >>/etc/modprobe.d/rtl-sdr-blacklist.conf
|
||||
echo blacklist e4000 >>/etc/modprobe.d/rtl-sdr-blacklist.conf
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
while true ; do
|
||||
if ifconfig wlan0 | grep -q "UP BROADCAST RUNNING MULTICAST" ; then
|
||||
sleep 30
|
||||
else
|
||||
echo "Wi-Fi connection down! Attempting reconnection."
|
||||
service hostapd restart
|
||||
service isc-dhcp-server restart
|
||||
sleep 10
|
||||
fi
|
||||
done
|
Ładowanie…
Reference in New Issue