aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ippp
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifup-ippp')
-rwxr-xr-xsysconfig/network-scripts/ifup-ippp13
1 files changed, 9 insertions, 4 deletions
diff --git a/sysconfig/network-scripts/ifup-ippp b/sysconfig/network-scripts/ifup-ippp
index 0619ac7c..89ae25cc 100755
--- a/sysconfig/network-scripts/ifup-ippp
+++ b/sysconfig/network-scripts/ifup-ippp
@@ -6,13 +6,20 @@
PATH=/sbin:/usr/sbin:/bin:/usr/bin
+cd /etc/sysconfig/network-scripts
+. network-functions
+. /etc/rc.d/init.d/functions
+
DEBUG="no"
# set device
CONFIG=$1
+[ -f "${CONFIG}" ] || CONFIG=ifcfg-${1}
+source_config
-# load device net config
-. $CONFIG
+if [ "${2}" = "boot" -a "${ONBOOT}" = "no" ]; then
+ exit
+fi
if [ ! -f /var/lock/subsys/isdn -a -x /etc/rc.d/init.d/isdn ] ; then
/etc/rc.d/init.d/isdn start
@@ -319,6 +326,4 @@ function addprovider()
addprovider || exit 1
-/etc/sysconfig/network-scripts/ifup-post $CONFIG
-
exit 0