--- net.agent.old 2005-04-17 12:17:04.000000000 +0200 +++ /etc/hotplug/net.agent 2005-04-21 19:25:04.000000000 +0200 @@ -71,6 +71,17 @@ # Gentoo elif [ -f /etc/gentoo-release ]; then + # Net policy, executes /etc/init.d/net.$INTERFACE in these cases: + # 1. hotplug_$INTERFACE_policy is not set at all, or + # 2. hotplug_$INTERFACE_policy="auto", or + # 3. hotplug_$INTERFACE_policy="butboot" and runlevel is not boot + # TODO + eval iface_policy=\$hotplug_${INTERFACE}_policy + ${iface_policy:=auto} + rl=$(runlevel) + + if [[ $iface_policy == "auto" || \ + ($iface_policy == "butboot" && ($rl != *0 && $rl != *6)) ]]; then script=/etc/init.d/net.$INTERFACE if [ -x "$script" ]; then @@ -80,6 +91,8 @@ else mesg "how do I bring interfaces up on this distro?" fi + fi + fi ;; esac mesg $1 $ACTION event not handled