source: udev/contrib/network/network@ 67335ba

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 67335ba 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: 810 bytes
Line 
1#!/bin/sh
2########################################################################
3# Begin $rc_base/init.d/network
4#
5# Description : Network Control Script
6#
7# Authors : Gerard Beekmans - gerard@linuxfromscratch.org
8# Nathan Coulson - nathan@linuxfromscratch.org
9# Kevin P. Fleming - kpfleming@linuxfromscratch.org
10#
11# Version : 00.00
12#
13# Notes :
14#
15########################################################################
16
17. /etc/sysconfig/rc
18. ${rc_functions}
19. /etc/sysconfig/network
20
21case "${1}" in
22 stop)
23 # Stop all network interfaces
24 IFACE="`ls /sys/class/net`"
25 for interface in $IFACE
26 do
27 if [ "$interface" != "lo" ]; then
28 IN_BOOT=1 ${network_devices}/ifdown ${interface}
29 fi
30 done
31 ;;
32
33 *)
34 echo "Usage: ${0} {stop}"
35 exit 1
36 ;;
37esac
38
39# End /etc/rc.d/init.d/network
Note: See TracBrowser for help on using the repository browser.