kopia lustrzana https://github.com/km4ack/pi-build
update get ip
rodzic
e47b99bf1b
commit
67ed237c29
|
@ -235,7 +235,7 @@ HS=$(systemctl is-active autohotspot)
|
|||
CURRENTNAME=$(sudo cat /etc/hostapd/hostapd.conf | grep ssid= | head -1 | sed 's/ssid=//')
|
||||
CURRENTPASS=$(sudo cat /etc/hostapd/hostapd.conf | grep wpa_passphrase= | sed 's/wpa_passphrase=//')
|
||||
HSIP=$(sudo cat /usr/bin/autohotspotN | grep "ip a add" | sed 's/ip\ a\ add\ //' | sed 's/\/24.*$//' | tr -d " ")
|
||||
WIREIP$(ifconfig eth0 | grep inet | head -1 | sed 's/inet //' | sed 's/netmask.*$//')
|
||||
WIREIP$(ifconfig | grep -A 1 eth0 | grep inet | awk '{ print $2 }')
|
||||
HSS=$(sudo cat /usr/bin/autohotspotN | grep "ip a add" | awk '{ print $4 }' | sed 's/\/24//')
|
||||
CIP=$(ifconfig | grep -A 1 wlan0 | grep inet | awk '{ print $2 }')
|
||||
CHECK=$(ls /etc/wpa_supplicant/ | grep FORCE)
|
||||
|
|
Ładowanie…
Reference in New Issue