diff options
author | Than Ngo <than@redhat.com> | 2001-08-21 12:41:40 +0000 |
---|---|---|
committer | Than Ngo <than@redhat.com> | 2001-08-21 12:41:40 +0000 |
commit | 93e74614c9521f3a05c1ce8de7ebfbe4527da63c (patch) | |
tree | 06a789d2a8e50a004e079a0118d0a1e9b080307a /sysconfig/network-scripts/ifup-ippp | |
parent | 756dc1a0ba9204c5d9daa5d0f3f76065c5e8eabe (diff) | |
download | initscripts-93e74614c9521f3a05c1ce8de7ebfbe4527da63c.tar initscripts-93e74614c9521f3a05c1ce8de7ebfbe4527da63c.tar.gz initscripts-93e74614c9521f3a05c1ce8de7ebfbe4527da63c.tar.bz2 initscripts-93e74614c9521f3a05c1ce8de7ebfbe4527da63c.tar.xz initscripts-93e74614c9521f3a05c1ce8de7ebfbe4527da63c.zip |
- fix shutdown/Bringing up isdn devicer6-23
Diffstat (limited to 'sysconfig/network-scripts/ifup-ippp')
-rwxr-xr-x | sysconfig/network-scripts/ifup-ippp | 14 |
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 |