]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- real device name is now saved by pppd in /var/run/ppp-*.pid
authorJacek Konieczny <jajcus@pld-linux.org>
Fri, 21 Apr 2000 17:36:42 +0000 (17:36 +0000)
committerJacek Konieczny <jajcus@pld-linux.org>
Fri, 21 Apr 2000 17:36:42 +0000 (17:36 +0000)
- ipparam is a config name not a device name
- pass $CONFIG instead of ifcfg-$DEVICE to ifup-post

svn-id: @717

ppp/ip-up

index 6741451a1cafc1400b1b8c3c8539ba699a891a34..6ed13f8e9550ac159224fd5c3d767c6e6bbd90ac 100755 (executable)
--- a/ppp/ip-up
+++ b/ppp/ip-up
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $Id: ip-up,v 1.3 1999/07/27 02:51:44 kloczek Exp $
+# $Id: ip-up,v 1.4 2000/04/21 17:36:42 jajcus Exp $
 # This file should not be modified
 #
 # This script is run by the pppd after the link is established.
@@ -31,21 +31,19 @@ PPP_LOCAL="$4"
 PPP_REMOTE="$5"
 PPP_IPPARAM="$6"
 export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
-
+. /etc/sysconfig/network-scripts/.functions 
+CONFIG="$PPP_IPPARAM"
+source_config
 
 # as an additional convenience, $PPP_TTYNAME is set to the tty name,
 # stripped of /dev/ (if present) for easier matching.
-PPP_TTYNAME=`/usr/bin/basename "$2"`
+PPP_TTYNAME=`basename "$PPP_TTY"`
 export PPP_TTYNAME
 
-LOGDEVICE=$6
-REALDEVICE=$1
-
-echo "$REALDEVICE" > /var/run/ppp-$LOGDEVICE.dev
-
 # Main Script starts here
 run-parts /etc/ppp/ip-up.d
 
-/etc/sysconfig/network-scripts/ifup-post ifcfg-${LOGDEVICE}
+/etc/sysconfig/network-scripts/ifup-post "$CONFIG"
 
 exit 0
This page took 0.180405 seconds and 4 git commands to generate.