summaryrefslogtreecommitdiff
path: root/examples/zcip.script
diff options
context:
space:
mode:
authorThomas Petazzoni2011-08-09 04:41:00 +0200
committerDenys Vlasenko2011-08-09 04:41:00 +0200
commit98aeabe792ac039b941968efbb4d2d6ef826813d (patch)
treeb3605ce36d0aa2660a29673008fb02080cc1c0e1 /examples/zcip.script
parent7926b989491e3968f229c7d7675afe130947bf31 (diff)
downloadbusybox-98aeabe792ac039b941968efbb4d2d6ef826813d.zip
busybox-98aeabe792ac039b941968efbb4d2d6ef826813d.tar.gz
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 <thomas.petazzoni@free-electrons.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples/zcip.script')
-rwxr-xr-xexamples/zcip.script4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/zcip.script b/examples/zcip.script
index 988e542..e543c30 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 +