From 8aff6add70fd50b3febe363a0002098f21e2679b Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Fri, 11 Mar 2005 20:02:08 +0000 Subject: added support for backgrounding daemons at startup with a '@' prefix, commented out the ldconfig call at startup, added support for unicode console maps, added a hotplug_ifup() function rc.d/network for hotplug's net.agent to use --- network | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'network') diff --git a/network b/network index d10c2ad..1513c58 100755 --- a/network +++ b/network @@ -12,6 +12,19 @@ # look for dhcpcd settings [ -f /etc/conf.d/dhcpcd ] && . /etc/conf.d/dhcpcd +# Special wrapper for hotplug ifup calls +# (make sure hotplug doesn't bring up disabled interfaces) +hotplug_ifup() +{ + [ "$1" != "" ] || return 1 + for ifline in ${INTERFACES[@]}; do + # if the interface is disabled then this will be skipped + if [ "$ifline" = "$1" ]; then + ifup $ifline + fi + done +} + ifup() { if [ "$1" = "" ]; then @@ -173,7 +186,7 @@ case "$1" in /bin/sleep 2 $0 start ;; - ifup|ifdown|iflist|rtup|rtdown|rtlist) + hotplug_ifup|ifup|ifdown|iflist|rtup|rtdown|rtlist) $1 $2 ;; *) -- cgit v1.2.3