aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
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 /sysconfig
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 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup-ippp3
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp3
2 files changed, 6 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-ippp b/sysconfig/network-scripts/ifup-ippp
index e3bbd25e..3c0fd149 100755
--- a/sysconfig/network-scripts/ifup-ippp
+++ b/sysconfig/network-scripts/ifup-ippp
@@ -357,4 +357,7 @@ function addprovider()
addprovider || exit 1
+# save Nickname of device
+rm -f /etc/ppp/$DEVICE && echo "NICKNAME=\"$CONFIG\"" > /etc/ppp/$DEVICE
+
exit 0
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp
index 3d26ebe8..5b18b318 100755
--- a/sysconfig/network-scripts/ifup-ppp
+++ b/sysconfig/network-scripts/ifup-ppp
@@ -141,6 +141,9 @@ fi
(logger -p daemon.info -t ifup-ppp \
$"pppd started for ${DEVNAME} on ${MODEMPORT} at ${LINESPEED}" &)&
+# save Nickname of device
+rm -f /etc/ppp/$DEVICE && echo "NICKNAME=\"$CONFIG\"" > /etc/ppp/$DEVICE
+
exec pppd $opts ${MODEMPORT} ${LINESPEED} \
ipparam ${DEVNAME} linkname ${DEVNAME} call ${DEVNAME}\
noauth \