aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-01-14 05:08:37 +0000
committerBill Nottingham <notting@redhat.com>2003-01-14 05:08:37 +0000
commitdd9587f656f17f844c4f6e3336218756d3dc8f34 (patch)
tree2016f5f1484ce0faf60e6dd02b163af851983bdb /sysconfig
parent6b241b6aee650dc043de5ec63f81cdeed7d7eb54 (diff)
downloadinitscripts-dd9587f656f17f844c4f6e3336218756d3dc8f34.tar
initscripts-dd9587f656f17f844c4f6e3336218756d3dc8f34.tar.gz
initscripts-dd9587f656f17f844c4f6e3336218756d3dc8f34.tar.bz2
initscripts-dd9587f656f17f844c4f6e3336218756d3dc8f34.tar.xz
initscripts-dd9587f656f17f844c4f6e3336218756d3dc8f34.zip
check for device after loading module (#75506)
Diffstat (limited to 'sysconfig')
-rw-r--r--sysconfig/network-scripts/network-functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 68c17ccd..605c19db 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -88,7 +88,8 @@ is_available ()
return 2
fi
modprobe $1 > /dev/null 2>&1 || return 1
- return 0
+ LC_ALL= LANG= ip -o link | grep -q $1
+ return $?
}
need_hostname ()