aboutsummaryrefslogtreecommitdiffstats
path: root/main/dhcp/dhclient-script-fix-bare-ip.patch
blob: 4c8ecc2e4f191345baf7bd25ec39ef306e84519c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/client/scripts/linux b/client/scripts/linux
index 0c42969..3214eb6 100755
--- a/client/scripts/linux
+++ b/client/scripts/linux
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 # dhclient-script for Linux. Dan Halbert, March, 1997.
 # Updated for Linux 2.[12] by Brian J. Murrell, January 1999.
 # No guarantees about this. I'm a novice at the details of 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