mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
fix syntax
This commit is contained in:
parent
f5efbb9a3a
commit
1ff8ffc2cf
1 changed files with 2 additions and 2 deletions
|
@ -27,11 +27,11 @@ source /mnt/hdd/raspiblitz.conf 2>/dev/null
|
|||
|
||||
# get local IP (from different sources)
|
||||
localip_ALL=$(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 [ $(isValidIP ${localip_ALL}) -eq 0 ] then
|
||||
if [ $(isValidIP ${localip_ALL}) -eq 0 ]; then
|
||||
localip_ALL=""
|
||||
fi
|
||||
localip_LAN=$(ip addr | grep 'state UP' -A2 | egrep -v 'docker0' | egrep -i '(*[eth][0-9]$)' | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
||||
if [ $(isValidIP ${localip_LAN}) -eq 0 ] then
|
||||
if [ $(isValidIP ${localip_LAN}) -eq 0 ]; then
|
||||
localip_LAN=""
|
||||
fi
|
||||
localip="${localip_ALL}"
|
||||
|
|
Loading…
Add table
Reference in a new issue