diff options
author | Christian Heim <phreak@gentoo.org> | 2005-11-28 16:21:15 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2005-11-28 16:21:15 +0000 |
commit | 34251c52e9210a738cb4f9e05d8727e5d21146d6 (patch) | |
tree | acddcf6f77a19d11b363beec8506923ac17a74c2 /net-scripts | |
parent | Fixing mkrelease to use our new svnroot (diff) | |
download | baselayout-vserver-34251c52e9210a738cb4f9e05d8727e5d21146d6.tar.gz baselayout-vserver-34251c52e9210a738cb4f9e05d8727e5d21146d6.tar.bz2 baselayout-vserver-34251c52e9210a738cb4f9e05d8727e5d21146d6.zip |
Import the latest baselayout changes. Merging revision 1634.
svn path=/baselayout-vserver/trunk/; revision=122
Diffstat (limited to 'net-scripts')
-rwxr-xr-x | net-scripts/init.d/net.lo | 2 | ||||
-rw-r--r-- | net-scripts/net.modules.d/dhcpcd | 2 | ||||
-rw-r--r-- | net-scripts/net.modules.d/helpers.d/functions | 2 | ||||
-rw-r--r-- | net-scripts/net.modules.d/iproute2 | 2 | ||||
-rw-r--r-- | net-scripts/net.modules.d/iwconfig | 4 | ||||
-rw-r--r-- | net-scripts/net.modules.d/pump | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/net-scripts/init.d/net.lo b/net-scripts/init.d/net.lo index 761966c..e1eabf9 100755 --- a/net-scripts/init.d/net.lo +++ b/net-scripts/init.d/net.lo @@ -640,7 +640,7 @@ iface_start() { # Do we have a fallback route? if [[ -n ${fallback_route[config_counter]} ]]; then x="fallback_route[config_counter]" - eval "routes_${ifvar}=( ${!x} )" + eval "routes_${ifvar}=( \"\${!x}\" )" fallback_route[config_counter]="" fi diff --git a/net-scripts/net.modules.d/dhcpcd b/net-scripts/net.modules.d/dhcpcd index 50c9760..9d8aa14 100644 --- a/net-scripts/net.modules.d/dhcpcd +++ b/net-scripts/net.modules.d/dhcpcd @@ -111,7 +111,7 @@ dhcpcd_start() { [[ -n ${!metric} && ${!metric} != "0" ]] && opts="${opts} -m ${!metric}" # Instruct dhcpcd to use our wrapper - opts="${opts} -c \"${svcdir}/net.modules.d/helpers.d/dhcpcd-wrapper\"" + opts="${opts} -c \"${svclib}/net.modules.d/helpers.d/dhcpcd-wrapper\"" # Instruct dhcpcd to create it's files in our state dir opts="${opts} -e \"${statedir}/${iface}\"" diff --git a/net-scripts/net.modules.d/helpers.d/functions b/net-scripts/net.modules.d/helpers.d/functions index ba184dc..a16cdb7 100644 --- a/net-scripts/net.modules.d/helpers.d/functions +++ b/net-scripts/net.modules.d/helpers.d/functions @@ -568,7 +568,7 @@ configure_variables() { x="" [[ -n ${option2} ]] && x="${v}_${option2}[@]" [[ -z ${!x} ]] && x="${v}_${option1}[@]" - [[ -n ${!x} ]] && eval "${v}_${ifvar}=( \"${!x}\" )" + [[ -n ${!x} ]] && eval "${v}_${ifvar}=( \"\${!x}\" )" done done diff --git a/net-scripts/net.modules.d/iproute2 b/net-scripts/net.modules.d/iproute2 index b9d0bed..f734e77 100644 --- a/net-scripts/net.modules.d/iproute2 +++ b/net-scripts/net.modules.d/iproute2 @@ -72,7 +72,7 @@ iproute2_down() { iproute2_is_up() { local check="\<UP\>" addr="${2:-false}" ${addr} && check="${check}.*inet " - ip addr show "$1" | grep -Eq "${check}" && return 0 + ip addr show "$1" | xargs | grep -Eq "${check}" && return 0 return 1 } diff --git a/net-scripts/net.modules.d/iwconfig b/net-scripts/net.modules.d/iwconfig index 09c0c32..53dcaa9 100644 --- a/net-scripts/net.modules.d/iwconfig +++ b/net-scripts/net.modules.d/iwconfig @@ -130,7 +130,7 @@ iwconfig_report() { local mode=$( iwconfig_get_mode "${iface}" ) if [[ ${mode} == "master" ]]; then m="as" - else + elif [[ ${mode} != "ad-hoc" ]]; then mac=$( iwconfig_get_ap_mac_address "${iface}" ) [[ -n ${mac} ]] && mac=" at ${mac}" fi @@ -752,7 +752,7 @@ iwconfig_configure() { # Setup ad-hoc mode? x="mode_${ifvar}" - x=$( echo "${!mode:-managed}" | tr '[:upper:]' '[:lower:]' ) + x=$( echo "${!x:-managed}" | tr '[:upper:]' '[:lower:]' ) if [[ ${x} == "ad-hoc" || ${x} == "master" ]]; then iwconfig_setup_specific "${iface}" "${x}" return $? diff --git a/net-scripts/net.modules.d/pump b/net-scripts/net.modules.d/pump index 6b7d86b..bb8be39 100644 --- a/net-scripts/net.modules.d/pump +++ b/net-scripts/net.modules.d/pump @@ -82,7 +82,7 @@ pump_start() { [[ ! -d "${statedir}/${iface}" ]] && mkdir -m 0755 -p "${statedir}/${iface}" opts="${opts} --win-client-ident --etc-dir=${statedir}/${iface}" - opts="${opts} --script ${svcdir}/net.modules.d/helpers.d/pump-wrapper" + opts="${opts} --script \"${svclib}/net.modules.d/helpers.d/pump-wrapper\"" opts="${opts} --keep-up --interface ${iface}" # Bring up DHCP for this interface (or alias) |