From 0b3708a7f8a585f5c985a07924634976b1219d42 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 19 Mar 1999 23:03:05 +0000 Subject: don't run linuxconf if /usr isn't mounted --- sysconfig/network-scripts/ifup-aliases | 3 ++- sysconfig/network-scripts/ifup-routes | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'sysconfig/network-scripts') diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases index 6540793e..81bad57a 100755 --- a/sysconfig/network-scripts/ifup-aliases +++ b/sysconfig/network-scripts/ifup-aliases @@ -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 # ask linuxconf for lines like: # add # del 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 -- cgit v1.2.1