[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH] zcip.script: fix ip environment variable
From: Thomas Petazzoni <thomas.petazzoni () free-electrons ! com>
Date: 2011-07-28 20:51:16
Message-ID: 1311886276-2594-1-git-send-email-thomas.petazzoni () free-electrons ! com
[Download RAW message or body]
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>
---
examples/zcip.script | 4 ++--
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 +
--
1.7.4.1
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic