aboutsummaryrefslogtreecommitdiffstats
path: root/main/dhcp/dhclient-script-fix-bare-ip.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-03-07 09:45:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-03-07 09:57:46 +0000
commitd4492c53e1fb76d013f67d75f5cbb9c436fc2c29 (patch)
tree19e3e42e7feb206f5c0e82af353f5519e07c6174 /main/dhcp/dhclient-script-fix-bare-ip.patch
parent79de4cf4c882bdc8a1e47373a5ad7d2053101358 (diff)
downloadaports-d4492c53e1fb76d013f67d75f5cbb9c436fc2c29.tar.bz2
aports-d4492c53e1fb76d013f67d75f5cbb9c436fc2c29.tar.xz
main/dhcp: use /bin/sh instead of bash in client-script
The script seems to be posix shell compatible so we only need to change the shebang to #!/bin/sh This way we avoid the bash dependency
Diffstat (limited to 'main/dhcp/dhclient-script-fix-bare-ip.patch')
-rw-r--r--main/dhcp/dhclient-script-fix-bare-ip.patch15
1 files changed, 11 insertions, 4 deletions
diff --git a/main/dhcp/dhclient-script-fix-bare-ip.patch b/main/dhcp/dhclient-script-fix-bare-ip.patch
index c325a17fe5..4c8ecc2e4f 100644
--- a/main/dhcp/dhclient-script-fix-bare-ip.patch
+++ b/main/dhcp/dhclient-script-fix-bare-ip.patch
@@ -1,7 +1,14 @@
-diff -ur a/client/scripts/linux b/client/scripts/linux
---- a/client/scripts/linux 2017-07-25 09:39:54.000000000 -0400
-+++ b/client/scripts/linux 2018-01-23 08:17:42.569366100 -0500
-@@ -345,7 +345,7 @@
+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