diff options
author | Bill Nottingham <notting@redhat.com> | 2003-01-14 05:08:37 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-01-14 05:08:37 +0000 |
commit | dd9587f656f17f844c4f6e3336218756d3dc8f34 (patch) | |
tree | 2016f5f1484ce0faf60e6dd02b163af851983bdb /sysconfig/network-scripts/network-functions | |
parent | 6b241b6aee650dc043de5ec63f81cdeed7d7eb54 (diff) | |
download | initscripts-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/network-scripts/network-functions')
-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 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 () |