diff options
Diffstat (limited to 'target/linux/brcm47xx/base-files/lib/preinit')
-rw-r--r-- | target/linux/brcm47xx/base-files/lib/preinit/15_set_preinit_interface_brcm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm47xx/base-files/lib/preinit/15_set_preinit_interface_brcm b/target/linux/brcm47xx/base-files/lib/preinit/15_set_preinit_interface_brcm index aab50bf1a9..f40e160b3b 100644 --- a/target/linux/brcm47xx/base-files/lib/preinit/15_set_preinit_interface_brcm +++ b/target/linux/brcm47xx/base-files/lib/preinit/15_set_preinit_interface_brcm @@ -11,6 +11,6 @@ preinit_ip() { ifconfig $pi_ifname $pi_ip netmask $pi_netmask broadcast $pi_broadcast up local try=0; - while [ $((try++)) -le 5 ] && [ ! $(cat /sys/class/net/$pi_ifname/operstate) == "up" ]; do sleep 1; done + while [ $((try++)) -le 5 ] && [ ! "$(cat /sys/class/net/$pi_ifname/operstate)" = "up" ]; do sleep 1; done } } |