diff options
author | davidovski <david@davidovski.xyz> | 2022-03-30 17:54:09 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-03-30 17:54:09 +0100 |
commit | de16da348671bd797500ab144ae56d23e88c7463 (patch) | |
tree | 728ec7d354049c977b34d9693109cd5683992a30 /extra/dhcp/02-dhclient-script-remove-bashisms.patch | |
parent | 9ae31d6c582fbb636625a87d0921fd914f33c05e (diff) |
fixed initd files
Diffstat (limited to 'extra/dhcp/02-dhclient-script-remove-bashisms.patch')
-rw-r--r-- | extra/dhcp/02-dhclient-script-remove-bashisms.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/extra/dhcp/02-dhclient-script-remove-bashisms.patch b/extra/dhcp/02-dhclient-script-remove-bashisms.patch new file mode 100644 index 0000000..afa1048 --- /dev/null +++ b/extra/dhcp/02-dhclient-script-remove-bashisms.patch @@ -0,0 +1,28 @@ +diff --git a/client/scripts/linux b/client/scripts/linux +index 0c42969..2e7274b 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 +@@ -428,7 +428,7 @@ case "$reason" in + # Check if any IPv6 address on this interface is marked as + # tentative. + ${ip} addr show ${interface} | grep inet6 | grep tentative \ +- &> /dev/null ++ > /dev/null 2>&1 + if [ $? -eq 0 ]; then + # Wait for duplicate address detection to complete or for + # the timeout specified as --dad-wait-time. +@@ -437,7 +437,7 @@ case "$reason" in + # We're going to poll for the tentative flag every second. + sleep 1 + ${ip} addr show ${interface} | grep inet6 | grep tentative \ +- &> /dev/null ++ > /dev/null 2>&1 + if [ $? -ne 0 ]; then + break; + fi |