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