From bafb0b214d8e0b9dbaebf5bfa6111fbb35a0039a Mon Sep 17 00:00:00 2001 From: Miloslav Trmac Date: Wed, 26 Jul 2006 00:44:40 +0000 Subject: Allow (:) as a "do-nothing" module install command (patch by Michal Jaegermann ) --- sysconfig/network-scripts/network-functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysconfig') 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 || { -- cgit v1.2.1