diff options
author | Michael K. Johnson <johnsonm@redhat.com> | 1997-09-18 19:49:46 +0000 |
---|---|---|
committer | Michael K. Johnson <johnsonm@redhat.com> | 1997-09-18 19:49:46 +0000 |
commit | b49499f63193f2e1be55badd92b0c7ed203e8dc7 (patch) | |
tree | af452ce5d2aa3fbeef0dca5cba6fdfa906376196 /sysconfig/network-scripts/ifup-sl | |
parent | 474a704b1a42ce6d44a79b6dacf06d9ba2b780ad (diff) | |
download | initscripts-b49499f63193f2e1be55badd92b0c7ed203e8dc7.tar initscripts-b49499f63193f2e1be55badd92b0c7ed203e8dc7.tar.gz initscripts-b49499f63193f2e1be55badd92b0c7ed203e8dc7.tar.bz2 initscripts-b49499f63193f2e1be55badd92b0c7ed203e8dc7.tar.xz initscripts-b49499f63193f2e1be55badd92b0c7ed203e8dc7.zip |
Support alternative device configurations.
Diffstat (limited to 'sysconfig/network-scripts/ifup-sl')
-rwxr-xr-x | sysconfig/network-scripts/ifup-sl | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sysconfig/network-scripts/ifup-sl b/sysconfig/network-scripts/ifup-sl index aad0b051..c0ad24d5 100755 --- a/sysconfig/network-scripts/ifup-sl +++ b/sysconfig/network-scripts/ifup-sl @@ -3,14 +3,16 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin # ifup-post can't be done for slip :-( Solution: use PPP +# become a daemon in case we have to persist. if [ "$1" != daemon ] ; then $0 daemon $*& exit 0 fi - shift -. $1 +CONFIG=$1 +. network-functions +source_config if [ "foo$2" = "fooboot" -a ${ONBOOT} = "no" ] then @@ -29,7 +31,11 @@ fi exit 1 } -[ -f /etc/sysconfig/network-scripts/dip-$DEVICE ] || { +DIPSCRIPT=/etc/sysconfig/network-scripts/dip-$DEVNAME +[ -f $DIPSCRIPT ] || { + DIPSCRIPT=/etc/sysconfig/network-scripts/dip-$PARENTDEVNAME +} +[ -f $DIPSCRIPT ] || { echo "/etc/sysconfig/network-scripts/dip-$DEVICE does not exist" echo "ifup-sl for $DEVICE exiting" logger -p daemon.info -t ifup-sl \ @@ -41,7 +47,7 @@ while : ; do echo > /var/run/sl-$DEVICE.dev (logger -p daemon.info -t ifup-sl \ "dip started for $DEVICE on $MODEMPORT at $LINESPEED" &)& - doexec /usr/sbin/dip dip-$DEVICE /etc/sysconfig/network-scripts/dip-$DEVICE + doexec /usr/sbin/dip dip-$DEVICE $DIPSCRIPT if [ "$PERSIST" != "yes" -o ! -f /var/run/sl-$DEVICE.dev ] ; then exit 0 fi |