#!/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.
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