/[vps]/baselayout-vserver/trunk/net-scripts/init.d/net.lo
Gentoo

Diff of /baselayout-vserver/trunk/net-scripts/init.d/net.lo

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 275 Revision 276
14 need localmount 14 need localmount
15 use isapnp isdn pcmcia usb wlan 15 use isapnp isdn pcmcia usb wlan
16 16
17 # Load any custom depend functions for the given interface 17 # Load any custom depend functions for the given interface
18 # For example, br0 may need eth0 and eth1 18 # For example, br0 may need eth0 and eth1
19 local iface="${myservice#*.}" 19 local iface="${SVCNAME#*.}"
20 [[ $(type -t "depend_${iface}") == "function" ]] && depend_${iface} 20 [[ $(type -t "depend_${iface}") == "function" ]] && depend_${iface}
21 21
22 return 0 22 return 0
23} 23}
24 24
951# bool start(void) 951# bool start(void)
952# 952#
953# Start entry point so that we only have one function 953# Start entry point so that we only have one function
954# which localises variables and unsets functions 954# which localises variables and unsets functions
955start() { 955start() {
956 declare -r IFACE="${SVCNAME#*.}"
956 if [[ ${IN_HOTPLUG} == "1" ]] ; then 957 if [[ ${IN_HOTPLUG} == "1" ]] ; then
957 # If we've been called by hotplug, check if we have 958 # If we've been called by hotplug, check if we have
958 # a policy for the interface for not starting 959 # a policy for the interface for not starting
959 local x ifvar="$(bash_variable "${IFACE}")" 960 local x ifvar="$(bash_variable "${IFACE}")"
960 x="hotplug_${ifvar}" 961 x="hotplug_${ifvar}"
986# bool stop(void) 987# bool stop(void)
987# 988#
988# Stop entry point so that we only have one function 989# Stop entry point so that we only have one function
989# which localises variables and unsets functions 990# which localises variables and unsets functions
990stop() { 991stop() {
992 declare -r IFACE="${SVCNAME#*.}"
991 einfo "Stopping ${IFACE}" 993 einfo "Stopping ${IFACE}"
992 run "${IFACE}" stop 994 run "${IFACE}" stop
993} 995}
994 996
995# vim:ts=4 997# vim:ts=4

Legend:
Removed from v.275  
changed lines
  Added in v.276

  ViewVC Help
Powered by ViewVC 1.1.20