aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-01-28 06:19:41 +0000
committerBill Nottingham <notting@redhat.com>2004-01-28 06:19:41 +0000
commit5953ff77d891ec8cd5d8efffd98450fa52ac544a (patch)
treeb4ac12ff3ad1f84007c1c230615a2af19dad6aaf /sysconfig/network-scripts
parentd39c8b78395e699f2c69f2dcb3adf13765860bc1 (diff)
downloadinitscripts-5953ff77d891ec8cd5d8efffd98450fa52ac544a.tar
initscripts-5953ff77d891ec8cd5d8efffd98450fa52ac544a.tar.gz
initscripts-5953ff77d891ec8cd5d8efffd98450fa52ac544a.tar.bz2
initscripts-5953ff77d891ec8cd5d8efffd98450fa52ac544a.tar.xz
initscripts-5953ff77d891ec8cd5d8efffd98450fa52ac544a.zip
handlie 2.6-style install lines correctly
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r--sysconfig/network-scripts/network-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 0dd92438..80542fc7 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -174,8 +174,8 @@ is_available ()
LC_ALL= LANG= ip -o link | grep -q $1
[ "$?" = "1" ] || return 0
- alias=`modprobe -c | awk "/^alias $1 / { print \\$3 }"`
- if [ -z "$alias" -o "$alias" = "off" ]; then
+ alias=`modprobe -c | awk "/^(alias|install) $1 / { print \\$3 }"`
+ if [ -z "$alias" -o "$alias" = "off" -o "$alias" = "/bin/true" ]; then
return 2
fi
HOTPLUG=`cat /proc/sys/kernel/hotplug`