diff options
author | Michael K. Johnson <johnsonm@redhat.com> | 1999-09-08 20:14:38 +0000 |
---|---|---|
committer | Michael K. Johnson <johnsonm@redhat.com> | 1999-09-08 20:14:38 +0000 |
commit | 40ecc9bedb8b80aea208404be2c9eb23fa52ff55 (patch) | |
tree | d171e3319033fae76fe800e9bd4f3a1a04392916 /sysconfig/network-scripts/network-functions | |
parent | 8f705efdedc37e43620b8ec88f9b156f85a1f2d0 (diff) | |
download | initscripts-40ecc9bedb8b80aea208404be2c9eb23fa52ff55.tar initscripts-40ecc9bedb8b80aea208404be2c9eb23fa52ff55.tar.gz initscripts-40ecc9bedb8b80aea208404be2c9eb23fa52ff55.tar.bz2 initscripts-40ecc9bedb8b80aea208404be2c9eb23fa52ff55.tar.xz initscripts-40ecc9bedb8b80aea208404be2c9eb23fa52ff55.zip |
make ifdown synchronous modulo timeout
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index f015525d..feea9922 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -48,3 +48,14 @@ set_hostname() echo "search $domain" >> /etc/resolv.conf fi } + +check_device_down () +{ + if ifconfig ${DEVICE} | grep UP >/dev/null 2>&1 ; then + retcode=1 + else + retcode=0 + fi + return $retcode +} + |