wok diff busybox/stuff/udhcp.script @ rev 23912

linux: add CONFIG_I2C_HID
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 16 10:22:39 2020 +0000 (2020-08-16)
parents cc3ce981e201
children
line diff
     1.1 --- a/busybox/stuff/udhcp.script	Sun Sep 24 08:47:56 2017 +0200
     1.2 +++ b/busybox/stuff/udhcp.script	Sun Aug 16 10:22:39 2020 +0000
     1.3 @@ -4,7 +4,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/ipv6 weirdness
     1.8 +[ "$subnet" = "255.255.255.255" ] && subnet="255.255.0.0" # qemu/ipv6 weirdness
     1.9  RESOLV_CONF="/etc/resolv.conf"
    1.10  [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
    1.11  [ -n "$subnet" ] && NETMASK="netmask $subnet"
    1.12 @@ -36,7 +36,7 @@
    1.13  	renew|bound)
    1.14  		ipv6mask=${ipv6prefix#*/}
    1.15  		ip=${ip:-$ipv6}
    1.16 -		if [ ${ip/:/} == $ip ]; then
    1.17 +		if [ ${ip/:/} = $ip ]; then
    1.18  			ifconfig $interface $ip $BROADCAST $NETMASK
    1.19  			v6=""
    1.20  		else
    1.21 @@ -57,7 +57,7 @@
    1.22  		for i in $dns ; do
    1.23  			echo nameserver $i
    1.24  		done >> $RESOLV_CONF
    1.25 -		if [ "$1" == "bound" ] ; then
    1.26 +		if [ "$1" = "bound" ] ; then
    1.27  			[ -n "$tz" ] && echo $tz > /etc/TZ
    1.28  			for i in /etc/ipup.d/*; do
    1.29  				[ -x $i ] && $i $interface $ip $dns