clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since b1babef was 615dd64, checked in by Jim Gifford <clfs@…>, 19 years ago |
r1030@server (orig r1028): jim | 2006-01-08 22:41:24 -0800
r1326@server: jim | 2006-01-08 22:41:02 -0800
Added: network helper
|
-
Property mode
set to
100755
|
File size:
964 bytes
|
Rev | Line | |
---|
[615dd64] | 1 | #!/bin/sh
|
---|
| 2 | ########################################################################
|
---|
| 3 | #
|
---|
| 4 | # Description : network_helper.sh
|
---|
| 5 | #
|
---|
| 6 | # Authors : Jim Gifford
|
---|
| 7 | #
|
---|
| 8 | # Version : 00.00
|
---|
| 9 | #
|
---|
| 10 | # Notes :
|
---|
| 11 | #
|
---|
| 12 | ########################################################################
|
---|
| 13 |
|
---|
| 14 | . /lib/udev/helper.functions
|
---|
| 15 | . /etc/sysconfig/udev_helper
|
---|
| 16 |
|
---|
| 17 | if [ "$INTERFACE" = "" ]; then
|
---|
| 18 | mesg Bad NET invocation: \$INTERFACE is not set
|
---|
| 19 | exit 1
|
---|
| 20 | fi
|
---|
| 21 |
|
---|
| 22 | case $ACTION in
|
---|
| 23 | add)
|
---|
| 24 | case $INTERFACE in
|
---|
| 25 |
|
---|
| 26 | ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*)
|
---|
| 27 | debug_mesg assuming $INTERFACE is already up
|
---|
| 28 | exit 0
|
---|
| 29 | ;;
|
---|
| 30 |
|
---|
| 31 | *)
|
---|
| 32 | export IN_HOTPLUG=1
|
---|
| 33 | exec /etc/sysconfig/network-devices/ifup $INTERFACE
|
---|
| 34 | ;;
|
---|
| 35 |
|
---|
| 36 | esac
|
---|
| 37 | ;;
|
---|
| 38 |
|
---|
| 39 | remove)
|
---|
| 40 | case $INTERFACE in
|
---|
| 41 |
|
---|
| 42 | ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*)
|
---|
| 43 | debug_mesg assuming $INTERFACE is already up
|
---|
| 44 | exit 0
|
---|
| 45 | ;;
|
---|
| 46 |
|
---|
| 47 | *)
|
---|
| 48 | export IN_HOTPLUG=1
|
---|
| 49 | exec /etc/sysconfig/network-devices/ifdown $INTERFACE
|
---|
| 50 | ;;
|
---|
| 51 |
|
---|
| 52 | esac
|
---|
| 53 | ;;
|
---|
| 54 |
|
---|
| 55 | *)
|
---|
| 56 | exit 1
|
---|
| 57 | ;;
|
---|
| 58 | esac
|
---|
Note:
See
TracBrowser
for help on using the repository browser.