aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-05-04 05:34:10 +0000
committerBill Nottingham <notting@redhat.com>2004-05-04 05:34:10 +0000
commit5e212fb145ee5483f7b3134217b9527b18cbd33e (patch)
tree52c7e70b4fb1d502d429673be3de7b612b5d34e3 /sysconfig/network-scripts
parentf0b1568fe3e5be8c57e719646953f081587344a6 (diff)
downloadinitscripts-5e212fb145ee5483f7b3134217b9527b18cbd33e.tar
initscripts-5e212fb145ee5483f7b3134217b9527b18cbd33e.tar.gz
initscripts-5e212fb145ee5483f7b3134217b9527b18cbd33e.tar.bz2
initscripts-5e212fb145ee5483f7b3134217b9527b18cbd33e.tar.xz
initscripts-5e212fb145ee5483f7b3134217b9527b18cbd33e.zip
handle multiple spaces correctly (#118583, <pallas@kadan.cz>)
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r--sysconfig/network-scripts/network-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index c797b795..b6817dfb 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -174,7 +174,7 @@ is_available ()
LC_ALL= LANG= ip -o link | grep -q $1
[ "$?" = "1" ] || return 0
- alias=`modprobe -c | awk "/^(alias|install) $1 / { print \\$3 }"`
+ alias=`modprobe -c | awk "/^(alias|install)[[:space:]]+$1[[:space:]]/ { print \\$3 }"`
if [ -z "$alias" -o "$alias" = "off" -o "$alias" = "/bin/true" ]; then
return 2
fi