aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/udhcp/simple.script3
1 files changed, 2 insertions, 1 deletions
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