aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-04-06 16:30:26 +0000
committerBill Nottingham <notting@redhat.com>1999-04-06 16:30:26 +0000
commit7912f974d46927cb80347bd89cebae2d9b4b99f2 (patch)
tree48660bf5e1b0a8f46e0403f7aac771333ec6caeb /rc.d/init.d/network
parent00611052fcecc3963868a9b98df35bb94126ad6f (diff)
downloadinitscripts-7912f974d46927cb80347bd89cebae2d9b4b99f2.tar
initscripts-7912f974d46927cb80347bd89cebae2d9b4b99f2.tar.gz
initscripts-7912f974d46927cb80347bd89cebae2d9b4b99f2.tar.bz2
initscripts-7912f974d46927cb80347bd89cebae2d9b4b99f2.tar.xz
initscripts-7912f974d46927cb80347bd89cebae2d9b4b99f2.zip
make network work for restart if called as ./network
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-xrc.d/init.d/network2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index e413b3c2..4efe0e12 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -29,6 +29,7 @@ fi
# Even if IPX is configured, without the utilities we can't do much
[ ! -x /sbin/ipx_internal_net -o ! -x /sbin/ipx_configure ] && IPX=
+CWD=`pwd`
cd /etc/sysconfig/network-scripts
# find all the interfaces besides loopback.
@@ -118,6 +119,7 @@ case "$1" in
fi
;;
restart)
+ cd $CWD
$0 stop
$0 start
;;