wok-tiny diff busybox/stuff/udhcp.script @ rev 142
Remove ashism ==
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 27 17:43:23 2019 +0100 (2019-02-27) |
parents | 2c3b4f47fbf5 |
children |
line diff
1.1 --- a/busybox/stuff/udhcp.script Wed Oct 07 10:53:41 2015 +0200 1.2 +++ b/busybox/stuff/udhcp.script Wed Feb 27 17:43:23 2019 +0100 1.3 @@ -2,7 +2,7 @@ 1.4 1.5 [ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 1.6 1.7 -[ "$subnet" == "255.255.255.255" ] && subnet="255.255.0.0" # qemu weirdness 1.8 +[ "$subnet" = "255.255.255.255" ] && subnet="255.255.0.0" # qemu weirdness 1.9 RESOLV_CONF="/etc/resolv.conf" 1.10 [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" 1.11 [ -n "$subnet" ] && NETMASK="netmask $subnet" 1.12 @@ -33,7 +33,7 @@ 1.13 for i in $dns ; do 1.14 echo nameserver $i 1.15 done >> $RESOLV_CONF 1.16 - [ "$1" == "bound" ] && for i in /etc/ipup.d/*; do 1.17 + [ "$1" = "bound" ] && for i in /etc/ipup.d/*; do 1.18 [ -x $i ] && $i $interface $ip $dns 1.19 done ;; 1.20 esac