aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1999-09-08 20:14:38 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1999-09-08 20:14:38 +0000
commit40ecc9bedb8b80aea208404be2c9eb23fa52ff55 (patch)
treed171e3319033fae76fe800e9bd4f3a1a04392916 /sysconfig/network-scripts/network-functions
parent8f705efdedc37e43620b8ec88f9b156f85a1f2d0 (diff)
downloadinitscripts-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-functions11
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
+}
+