diff options
Diffstat (limited to 'sys-apps/baselayout/files/baselayout-1.12.0_pre7-ifconfig.patch')
-rw-r--r-- | sys-apps/baselayout/files/baselayout-1.12.0_pre7-ifconfig.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sys-apps/baselayout/files/baselayout-1.12.0_pre7-ifconfig.patch b/sys-apps/baselayout/files/baselayout-1.12.0_pre7-ifconfig.patch deleted file mode 100644 index 82ccc97552a7..000000000000 --- a/sys-apps/baselayout/files/baselayout-1.12.0_pre7-ifconfig.patch +++ /dev/null @@ -1,40 +0,0 @@ -diff -u net.modules.d/ifconfig /lib/rcscripts/net.modules.d/ifconfig ---- net.modules.d/ifconfig 2005-08-30 18:49:36.000000000 +0100 -+++ lib/rcscripts/net.modules.d/ifconfig 2005-09-01 07:26:36.000000000 +0100 -@@ -325,7 +325,6 @@ - local iface="$1" i=0 r e - - ifconfig_exists "${iface}" true || return 1 -- ifconfig_up "${iface}" - - # Extract the config - local -a config=( "$@" ) -@@ -360,19 +359,17 @@ - config=( "${config[@]//peer/pointtopoint}" ) - fi - -+ # Ensure that the interface is up so we can add IPv6 addresses -+ interface_up "${iface}" -+ - # Some kernels like to apply lo with an address when they are brought up -- if [[ ${iface} == "lo" \ -- || ${config[@]} == "127.0.0.1/8 broadcast 127.255.255.255" ]]; then -- ifconfig "${iface}" ${config[@]} 2>/dev/null -- r="0" -- else -- e=$( ifconfig "${iface}" ${config[@]} 2>&1 ) -- r="$?" -- [[ ${r} != "0" ]] && echo "${e}" > /dev/stderr -+ if [[ ${iface} == "lo" && ${config[@]} == "127.0.0.1 netmask 255.0.0.0 broadcast 127.255.255.255" ]]; then -+ ifconfig "${iface}" 0.0.0.0 - fi -- -- [[ ${r} != "0" || ${config[0]} == "inet6"* || ${iface} == *:* ]] \ -- && return ${r} -+ -+ ifconfig "${iface}" ${config[@]} -+ r="$?" -+ [[ ${r} != "0" ]] && return ${r} - - local metric ifvar=$( bash_variable "${iface}" ) - # Remove the newly added route and replace with our metric |