aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-routes
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-03-19 23:03:05 +0000
committerBill Nottingham <notting@redhat.com>1999-03-19 23:03:05 +0000
commit0b3708a7f8a585f5c985a07924634976b1219d42 (patch)
treee595cd752fe4531c103efa10ac15a330fd1c2420 /sysconfig/network-scripts/ifup-routes
parentc1217e6aab0e4feaf8a54de8aeeb53730bf40c96 (diff)
downloadinitscripts-0b3708a7f8a585f5c985a07924634976b1219d42.tar
initscripts-0b3708a7f8a585f5c985a07924634976b1219d42.tar.gz
initscripts-0b3708a7f8a585f5c985a07924634976b1219d42.tar.bz2
initscripts-0b3708a7f8a585f5c985a07924634976b1219d42.tar.xz
initscripts-0b3708a7f8a585f5c985a07924634976b1219d42.zip
don't run linuxconf if /usr isn't mounted
Diffstat (limited to 'sysconfig/network-scripts/ifup-routes')
-rwxr-xr-xsysconfig/network-scripts/ifup-routes3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-routes b/sysconfig/network-scripts/ifup-routes
index f0dde135..f16750d5 100755
--- a/sysconfig/network-scripts/ifup-routes
+++ b/sysconfig/network-scripts/ifup-routes
@@ -7,7 +7,8 @@ if [ "$1" = "" ]; then
exit 1
fi
-if [ -x /bin/linuxconf ] ; then
+# don't run linuxconf if /usr isn't there
+if [ -x /bin/linuxconf -a -f /usr/lib/libncurses.so.4.2 ] ; then
linuxconf --hint routing "$1" | while read args; do
/sbin/route $args
done