#! /bin/sh # /etc/rc.d/rc.inet1-main # # This script is used to bring up the various network interfaces or # virtual machines that are used for networking. This script is # called after the regular interfaces are configured and before # the default gateway is set. start() { # If you have Virtual Distributed Ethernet [ -x /etc/rc.d/rc.vde2 ] && /etc/rc.d/rc.vde2 start # Virtual machines [ -x /etc/rc.d/rc.virtualbox ] && /etc/rc.d/rc.virtualbox start [ -x /etc/rc.d/rc.lxc ] && /etc/rc.d/rc.lxc start } stop() { # Virtual machines [ -x /etc/rc.d/rc.lxc ] && /etc/rc.d/rc.lxc stop [ -x /etc/rc.d/rc.virtualbox ] && /etc/rc.d/rc.virtualbox stop # If you have Virtual Distributed Ethernet [ -x /etc/rc.d/rc.vde2 ] && /etc/rc.d/rc.vde2 stop } ############ ### MAIN ### ############ case "$1" in 'start') # "start" brings up all configured interfaces: start ;; 'stop') # "stop" takes down all configured interfaces: stop ;; 'restart') # "restart" restarts the network: stop start ;; *) # The default is to start: start esac # End of /etc/rc.d/rc.inet1-main