mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-14 06:39:24 +02:00
Merge branch 'v1.6' of https://github.com/rootzoll/raspiblitz into v1.6
This commit is contained in:
commit
bad57280a3
@ -35,7 +35,7 @@ function wait_for_local_network() {
|
||||
gotLocalIP=0
|
||||
until [ ${gotLocalIP} -eq 1 ]
|
||||
do
|
||||
localip=$(ip addr | grep 'state UP' -A2 | egrep -v 'docker0' | grep 'eth0\|wlan0' | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
||||
localip=$(ip addr | grep 'state UP' -A2 | egrep -v 'docker0' | egrep -i '(*[eth|ens|enp|eno|wlan|wlp][0-9]$)' | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
||||
if [ ${#localip} -eq 0 ]; then
|
||||
configWifiExists=$(sudo cat /etc/wpa_supplicant/wpa_supplicant.conf 2>/dev/null| grep -c "network=")
|
||||
if [ ${configWifiExists} -eq 0 ]; then
|
||||
|
@ -17,7 +17,7 @@ sudo mkdir /mnt/hdd/temp 2>/dev/null
|
||||
sudo chmod 777 -R /mnt/hdd/temp 2>/dev/null
|
||||
|
||||
# localIP
|
||||
localip=$(ip addr | grep 'state UP' -A2 | egrep -v 'docker0' | grep 'eth0\|wlan0' | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
||||
localip=$(ip addr | grep 'state UP' -A2 | egrep -v 'docker0' | egrep -i '(*[eth|ens|enp|eno|wlan|wlp][0-9]$)' | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
||||
echo "localIP='${localip}'"
|
||||
|
||||
# temp - no measurement in a VM
|
||||
@ -267,4 +267,4 @@ fi
|
||||
# info on scan run time
|
||||
endTime=$(date +%s)
|
||||
runTime=$(echo "${endTime}-${startTime}" | bc)
|
||||
echo "scriptRuntime=${runTime}"
|
||||
echo "scriptRuntime=${runTime}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user