aboutsummaryrefslogtreecommitdiffstats
path: root/ppp
diff options
context:
space:
mode:
authorThan Ngo <than@redhat.com>2003-10-22 16:45:39 +0000
committerThan Ngo <than@redhat.com>2003-10-22 16:45:39 +0000
commit5c89279af3fc40579b837549a75c8dce9345e02d (patch)
tree970c3f9eb43ecb3b8d83150809887e0d1802f219 /ppp
parent327ae778e8ccf52cbadbe9da2d85b86fcdb59ae6 (diff)
downloadinitscripts-5c89279af3fc40579b837549a75c8dce9345e02d.tar
initscripts-5c89279af3fc40579b837549a75c8dce9345e02d.tar.gz
initscripts-5c89279af3fc40579b837549a75c8dce9345e02d.tar.bz2
initscripts-5c89279af3fc40579b837549a75c8dce9345e02d.tar.xz
initscripts-5c89279af3fc40579b837549a75c8dce9345e02d.zip
add better fix to support nickname (#105785)
Diffstat (limited to 'ppp')
-rw-r--r--ppp/ip-down5
-rw-r--r--ppp/ip-up6
2 files changed, 2 insertions, 9 deletions
diff --git a/ppp/ip-down b/ppp/ip-down
index ae4f60a8..3c86f2a6 100644
--- a/ppp/ip-down
+++ b/ppp/ip-down
@@ -7,12 +7,9 @@ export PATH
LOGDEVICE=$6
REALDEVICE=$1
-NETWORKDIR=/etc/sysconfig/network-scripts
[ -x /etc/ppp/ip-down.local ] && /etc/ppp/ip-down.local "$@"
-# get Nickname name of device
-[ -f /etc/ppp/$LOGDEVICE ] && . /etc/ppp/$LOGDEVICE
-[ -f $NETWORKDIR/${NICKNAME} ] && $NETWORKDIR/ifdown-post ${NICKNAME}
+/etc/sysconfig/network-scripts/ifdown-post ifcfg-${LOGDEVICE}
exit 0
diff --git a/ppp/ip-up b/ppp/ip-up
index 4ae2b8c0..3b73814f 100644
--- a/ppp/ip-up
+++ b/ppp/ip-up
@@ -7,12 +7,8 @@ export PATH
LOGDEVICE=$6
REALDEVICE=$1
-NETWORKDIR=/etc/sysconfig/network-scripts
-# get Alias name of device
-[ -f /etc/ppp/$LOGDEVICE ] && . /etc/ppp/$LOGDEVICE
-
-[ -f $NETWORKDIR/${NICKNAME} ] && $NETWORKDIR/ifup-post ${NICKNAME}
+[ -f /etc/sysconfig/network-scripts/ifcfg-${LOGDEVICE} ] && /etc/sysconfig/network-scripts/ifup-post ifcfg-${LOGDEVICE}
[ -x /etc/ppp/ip-up.local ] && /etc/ppp/ip-up.local "$@"