diff options
author | Miloslav Trmac <mitr@volny.cz> | 2006-07-26 00:44:40 +0000 |
---|---|---|
committer | Miloslav Trmac <mitr@volny.cz> | 2006-07-26 00:44:40 +0000 |
commit | bafb0b214d8e0b9dbaebf5bfa6111fbb35a0039a (patch) | |
tree | d72e85f2e45d2ef70d59cd5d31ea4cb4b4847b00 /sysconfig/network-scripts | |
parent | b900bfe5a536065665f6575aaa84b0615db856dc (diff) | |
download | initscripts-bafb0b214d8e0b9dbaebf5bfa6111fbb35a0039a.tar initscripts-bafb0b214d8e0b9dbaebf5bfa6111fbb35a0039a.tar.gz initscripts-bafb0b214d8e0b9dbaebf5bfa6111fbb35a0039a.tar.bz2 initscripts-bafb0b214d8e0b9dbaebf5bfa6111fbb35a0039a.tar.xz initscripts-bafb0b214d8e0b9dbaebf5bfa6111fbb35a0039a.zip |
Allow (:) as a "do-nothing" module install command (patch by Michal Jaegermann
<michal@harddata.com>)
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index eb2ce1c8..36d207a7 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -201,7 +201,8 @@ is_available () [ "$?" = "1" ] || return 0 alias=`modprobe -c | awk "/^(alias|install)[[:space:]]+$1[[:space:]]/ { print \\$3 }"` - if [ -z "$alias" -o "$alias" = "off" -o "$alias" = "/bin/true" ]; then + if [ -z "$alias" -o "$alias" = "off" -o "$alias" = "/bin/true" \ + -o "$alias" = ":" ]; then return 2 fi modprobe $1 > /dev/null 2>&1 || { |