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>
This commit is contained in:
parent
7926b98949
commit
98aeabe792
@ -20,9 +20,9 @@ config)
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# remember $ip for $interface, to use on restart
|
# 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
|
then
|
||||||
echo $ip > "$IP.$interface"
|
echo $ip > "$ip.$interface"
|
||||||
fi
|
fi
|
||||||
exec ip address add dev $interface \
|
exec ip address add dev $interface \
|
||||||
scope link local "$ip/16" broadcast +
|
scope link local "$ip/16" broadcast +
|
||||||
|
Loading…
Reference in New Issue
Block a user