From: Thomas Petazzoni Date: Tue, 9 Aug 2011 02:41:00 +0000 (+0200) Subject: zcip.script: fix $ip environment variable X-Git-Tag: 1_19_0~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=98aeabe792ac039b941968efbb4d2d6ef826813d;p=oweals%2Fbusybox.git zcip.script: fix $ip environment variable The environment variable containing the IP address allocated by zcip is "ip" and not "IP". Signed-off-by: Thomas Petazzoni Signed-off-by: Denys Vlasenko --- diff --git a/examples/zcip.script b/examples/zcip.script index 988e542a4..e543c304e 100755 --- a/examples/zcip.script +++ b/examples/zcip.script @@ -20,9 +20,9 @@ config) exit 1 fi # remember $ip for $interface, to use on restart - if [ "x$IP" != x -a -w "$IP.$interface" ] + if [ "x$ip" != x -a -w "$ip.$interface" ] then - echo $ip > "$IP.$interface" + echo $ip > "$ip.$interface" fi exec ip address add dev $interface \ scope link local "$ip/16" broadcast +