2 # Copyright 1999-2004 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
5 # Gentoo-specific ifplugd.action
7 # This file gets called by ifplugd when it wants to bring an interface
11 if grep -q initng /proc/1/cmdline
16 EXEC="/etc/init.d/net.$1"
22 if [ "${INITNG}" = "yes" ]
30 if [ "${INITNG}" = "yes" ]
38 echo "$0: wrong arguments" >&2
39 echo "Call with <interface> <up|down>" >&2
44 export IN_BACKGROUND=true
51 logger -t ifplugd.action "Error: Couldn't configure $1, no ${EXEC} !"