diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2011-08-09 04:41:00 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-08-09 04:41:00 +0200 |
commit | 98aeabe792ac039b941968efbb4d2d6ef826813d (patch) | |
tree | b3605ce36d0aa2660a29673008fb02080cc1c0e1 | |
parent | 7926b989491e3968f229c7d7675afe130947bf31 (diff) | |
download | busybox-w32-98aeabe792ac039b941968efbb4d2d6ef826813d.tar.gz busybox-w32-98aeabe792ac039b941968efbb4d2d6ef826813d.tar.bz2 busybox-w32-98aeabe792ac039b941968efbb4d2d6ef826813d.zip |
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>
-rwxr-xr-x | examples/zcip.script | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
20 | exit 1 | 20 | exit 1 |
21 | fi | 21 | fi |
22 | # remember $ip for $interface, to use on restart | 22 | # remember $ip for $interface, to use on restart |
23 | if [ "x$IP" != x -a -w "$IP.$interface" ] | 23 | if [ "x$ip" != x -a -w "$ip.$interface" ] |
24 | then | 24 | then |
25 | echo $ip > "$IP.$interface" | 25 | echo $ip > "$ip.$interface" |
26 | fi | 26 | fi |
27 | exec ip address add dev $interface \ | 27 | exec ip address add dev $interface \ |
28 | scope link local "$ip/16" broadcast + | 28 | scope link local "$ip/16" broadcast + |