kopia lustrzana https://github.com/craigerl/digipi
auto hotspot script
rodzic
8328bb15c1
commit
adc5ab8c83
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Auto-hotspot checking network status."
|
||||
|
||||
STATUS=`cat /sys/class/net/wlan0/operstate`
|
||||
|
||||
if [ $STATUS = "down" -o $STATUS = "dormant" ]; then
|
||||
echo "Wifi network is down, enabling hot spot mode."
|
||||
nmcli connection up hotspot
|
||||
fi
|
||||
|
Ładowanie…
Reference in New Issue