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-ippp14
1 files changed, 10 insertions, 4 deletions
diff --git a/sysconfig/network-scripts/ifup-ippp b/sysconfig/network-scripts/ifup-ippp
index 8ab1680f..04deb54f 100755
--- a/sysconfig/network-scripts/ifup-ippp
+++ b/sysconfig/network-scripts/ifup-ippp
@@ -28,10 +28,12 @@ if [ ! -x /usr/sbin/isdnctrl -a ! -x /sbin/isdnctrl ] ; then
exit 1
fi
-# load provider config
-#[ -f /etc/sysconfig/networking/devices/$DEVICE.d/dialup ] || exit 1
-#. /etc/sysconfig/networking/devices/$DEVICE.d/dialup
-
+# check all ISDN devices
+if ! isdnctrl list all >/dev/null 2>&1 ; then
+ logger -p daemon.info -t ifup-ippp "cannot list ISDN devices"
+ exit 1
+fi
+
# check if device already is configured
isdnctrl list $DEVICE >/dev/null 2>&1 && exit 0
@@ -311,6 +313,10 @@ function addprovider()
fi
}
+if [ ! -f /var/lock/subsys/isdn -a -x /etc/rc.d/init.d/isdn ] ; then
+ /etc/rc.d/init.d/isdn start
+fi
+
addprovider || exit 1
/etc/sysconfig/network-scripts/ifup-post $CONFIG