diff options
Diffstat (limited to 'net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.4-init.d')
-rw-r--r-- | net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.4-init.d | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.4-init.d b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.4-init.d deleted file mode 100644 index 37c464e80141..000000000000 --- a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.4-init.d +++ /dev/null @@ -1,42 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.4-init.d,v 1.1 2005/01/10 07:42:11 brix Exp $ - -depend() { - before net -} - -start() { - ebegin "Starting wpa_supplicant" - - if [ ! -f /etc/wpa_supplicant.conf ]; then - eerror "Configuration file /etc/wpa_supplicant.conf not found" - return 1 - fi - - if [ -z "$INTERFACES" ]; then - eerror "No interfaces specified in /etc/conf.d/wpa_supplicant" - return 1 - fi - - for IFACE in $INTERFACES; do - ebegin " ${IFACE}" - - eval ARGS_IFACE=\"\$\{ARGS_$IFACE\}\" - - /sbin/ifconfig ${IFACE} up - - start-stop-daemon --start --quiet --exec /usr/sbin/wpa_supplicant \ - -- -B -i${IFACE} -c/etc/wpa_supplicant.conf ${ARGS} ${ARGS_IFACE} - eend $? - done -} - -stop() { - ebegin "Stopping wpa_supplicant" - - start-stop-daemon --stop --quiet --exec /usr/sbin/wpa_supplicant - eend ${?} -} - |