diff options
-rwxr-xr-x | examples/udhcp/simple.script | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/udhcp/simple.script b/examples/udhcp/simple.script index 6658fbeef..f079ec8b8 100755 --- a/examples/udhcp/simple.script +++ b/examples/udhcp/simple.script | |||
@@ -18,7 +18,7 @@ case "$1" in | |||
18 | deconfig) | 18 | deconfig) |
19 | echo "Clearing IP addresses on $interface, upping it" | 19 | echo "Clearing IP addresses on $interface, upping it" |
20 | if command -v ip >/dev/null; then | 20 | if command -v ip >/dev/null; then |
21 | ip addr flush dev $interface | 21 | ip -4 addr flush dev $interface |
22 | ip link set dev $interface up | 22 | ip link set dev $interface up |
23 | else | 23 | else |
24 | ifconfig $interface 0.0.0.0 | 24 | ifconfig $interface 0.0.0.0 |