diff options
author | tcely <tcely@users.noreply.github.com> | 2018-08-03 20:48:05 -0400 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-02-08 09:46:19 +0000 |
commit | 23fac33a7652137d3ae308436229dd6edb9940f6 (patch) | |
tree | e2c1df4e9b45b6a34b3f2a3de02449948562d097 /main/dhcp/01-dhclient-script-fix-bare-ip.patch | |
parent | 0a859defe7146331cd48ef213f5b44f5e331ab87 (diff) | |
download | aports-23fac33a7652137d3ae308436229dd6edb9940f6.tar.bz2 aports-23fac33a7652137d3ae308436229dd6edb9940f6.tar.xz |
main/dhcp: remove bashisms from dhclient-script
Diffstat (limited to 'main/dhcp/01-dhclient-script-fix-bare-ip.patch')
-rw-r--r-- | main/dhcp/01-dhclient-script-fix-bare-ip.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/dhcp/01-dhclient-script-fix-bare-ip.patch b/main/dhcp/01-dhclient-script-fix-bare-ip.patch new file mode 100644 index 0000000000..7b3165d875 --- /dev/null +++ b/main/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 + |