[git commit] examples/udhcp/simple.script: up interface on deconfig event
Denys Vlasenko
vda.linux at googlemail.com
Thu Sep 5 12:58:30 UTC 2019
commit: https://git.busybox.net/busybox/commit/?id=81a708393d851b6b35c9bc3efe0e76ae696c07cc
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
examples/udhcp/simple.script | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/examples/udhcp/simple.script b/examples/udhcp/simple.script
index 53974e6d6..29199aa39 100755
--- a/examples/udhcp/simple.script
+++ b/examples/udhcp/simple.script
@@ -16,9 +16,10 @@ BROADCAST="broadcast +"
case "$1" in
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
ip addr flush dev $interface
+ ip link set dev $interface up
else
ifconfig $interface 0.0.0.0
fi
More information about the busybox-cvs
mailing list