From 24957b1ce02579799b0cba3054be53b61cd8fb87 Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Fri, 19 Nov 1999 20:57:53 +0000 Subject: make netcfg work by allowing device name to be full path to ifcfg file --- sysconfig/network-scripts/ifup-ppp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifup-ppp') 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 -- cgit v1.2.1