diff options
author | Michael K. Johnson <johnsonm@redhat.com> | 1999-11-19 20:57:53 +0000 |
---|---|---|
committer | Michael K. Johnson <johnsonm@redhat.com> | 1999-11-19 20:57:53 +0000 |
commit | 24957b1ce02579799b0cba3054be53b61cd8fb87 (patch) | |
tree | 0495c1bd48b5ec0f6ae1d9a349a1a0a578c60258 | |
parent | 1a4d310c5a1f44b8946cc8efa2b0e789947e1e15 (diff) | |
download | initscripts-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
-rwxr-xr-x | sysconfig/network-scripts/ifup-ppp | 5 |
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 |