examples/udhcp/simple.script: up interface on deconfig event
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
35e349de3c
commit
81a708393d
@ -16,9 +16,10 @@ BROADCAST="broadcast +"
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
deconfig)
|
deconfig)
|
||||||
echo "Setting IP address 0.0.0.0 on $interface"
|
echo "Clearing IP addresses on $interface, upping it"
|
||||||
if command -v ip >/dev/null; then
|
if command -v ip >/dev/null; then
|
||||||
ip addr flush dev $interface
|
ip addr flush dev $interface
|
||||||
|
ip link set dev $interface up
|
||||||
else
|
else
|
||||||
ifconfig $interface 0.0.0.0
|
ifconfig $interface 0.0.0.0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user