aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-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 /sysconfig/network-scripts/ifup-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 'sysconfig/network-scripts/ifup-ppp')
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp3
1 files changed, 3 insertions, 0 deletions
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 \