aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1999-11-19 20:57:53 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1999-11-19 20:57:53 +0000
commit24957b1ce02579799b0cba3054be53b61cd8fb87 (patch)
tree0495c1bd48b5ec0f6ae1d9a349a1a0a578c60258 /sysconfig/network-scripts
parent1a4d310c5a1f44b8946cc8efa2b0e789947e1e15 (diff)
downloadinitscripts-24957b1ce02579799b0cba3054be53b61cd8fb87.tar
initscripts-24957b1ce02579799b0cba3054be53b61cd8fb87.tar.gz
initscripts-24957b1ce02579799b0cba3054be53b61cd8fb87.tar.bz2
initscripts-24957b1ce02579799b0cba3054be53b61cd8fb87.tar.xz
initscripts-24957b1ce02579799b0cba3054be53b61cd8fb87.zip
make netcfg work by allowing device name to be full path to ifcfg file
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp
index e09c3fd0..2b245bbb 100755
--- a/sysconfig/network-scripts/ifup-ppp
+++ b/sysconfig/network-scripts/ifup-ppp
@@ -4,8 +4,11 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
# ifup-post for PPP is handled through /etc/ppp/ip-up
if [ "$1" != daemon ] ; then
+ # just in case a full path to the configuration file is passed in
+ ifcfg=$(basename $1)
+ shift
# let ppp-watch do the right thing
- exec /sbin/ppp-watch "$@"
+ exec /sbin/ppp-watch "$ifcfg" "$@"
fi
shift