mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Less errors in logs
This commit is contained in:
parent
192ff0620b
commit
e527e52c70
3 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
|||
INTF=gt-${DEV}
|
||||
[ -z "$LOCALIP" ] && LOCALIP="10.255.255.1"
|
||||
[ -z "$BROADCASTIP" ] && BROADCASTIP="10.255.255.3"
|
||||
while [ -z "$(ip link show $INTF)" ]; do
|
||||
while [ -z "$(ip link show $INTF 2>/dev/null)" ]; do
|
||||
sleep 2
|
||||
done
|
||||
[ "$(ip addr show dev $INTF | grep -o 'inet [0-9]*\.[0-9]*\.[0-9]*\.[0-9]*' | grep -o '[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*')" != "$LOCALIP" ] && {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue