summaryrefslogtreecommitdiff
path: root/extra/dhcp/01-dhclient-script-fix-bare-ip.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/dhcp/01-dhclient-script-fix-bare-ip.patch')
-rw-r--r--extra/dhcp/01-dhclient-script-fix-bare-ip.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/extra/dhcp/01-dhclient-script-fix-bare-ip.patch b/extra/dhcp/01-dhclient-script-fix-bare-ip.patch
new file mode 100644
index 0000000..7b3165d
--- /dev/null
+++ b/extra/dhcp/01-dhclient-script-fix-bare-ip.patch
@@ -0,0 +1,13 @@
+diff --git a/client/scripts/linux b/client/scripts/linux
+index 0c42969..3cd2a75 100755
+--- a/client/scripts/linux
++++ b/client/scripts/linux
+@@ -394,7 +394,7 @@ case "$reason" in
+ make_resolv_conf
+ else
+ # flush all IPs from interface
+- ip -4 addr flush dev ${interface}
++ ${ip} -4 addr flush dev ${interface}
+ exit_with_hooks 2
+ fi
+