Mirror of git://git.busybox.net/busybox with our patches on top
Source
13
13
# and it drops links when they go down. that isn't
14
14
# the most robust model...
15
15
exit 0
16
16
;;
17
17
config)
18
18
if [ "x$ip" = x ]
19
19
then
20
20
exit 1
21
21
fi
22
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
24
then
25
-
echo $ip > "$IP.$interface"
25
+
echo $ip > "$ip.$interface"
26
26
fi
27
27
exec ip address add dev $interface \
28
28
scope link local "$ip/16" broadcast +
29
29
;;
30
30
deconfig)
31
31
if [ x$ip = x ]
32
32
then
33
33
exit 1
34
34
fi
35
35
exec ip address del dev $interface local $ip