summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/wpa_supplicant/files')
-rw-r--r--net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.52
-rw-r--r--net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-conf.d12
-rw-r--r--net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-init.d42
3 files changed, 56 insertions, 0 deletions
diff --git a/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.5 b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.5
new file mode 100644
index 000000000000..e86a58a13963
--- /dev/null
+++ b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.5
@@ -0,0 +1,2 @@
+MD5 d24b2eb60e4969b28ca86a84f635f9ec wpa_supplicant-0.3.5.tar.gz 296890
+MD5 8237d57be31464ddd7a710704e6755f0 madwifi-cvs-snapshot-2005-01-07.tar.bz2 1586914
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-conf.d b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-conf.d
new file mode 100644
index 000000000000..eb4c3bdfbac6
--- /dev/null
+++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-conf.d
@@ -0,0 +1,12 @@
+# 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.5-conf.d,v 1.1 2005/01/24 19:17:52 brix Exp $
+
+# List of interfaces
+INTERFACES="eth1"
+
+# Common arguments to all wpa_supplicant instances
+ARGS="-w"
+
+# Interface specific arguments
+#ARGS_eth1="-Dipw2100"
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-init.d b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-init.d
new file mode 100644
index 000000000000..d4b2d7aa3727
--- /dev/null
+++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-init.d
@@ -0,0 +1,42 @@
+#!/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.5-init.d,v 1.1 2005/01/24 19:17:52 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 ${?}
+}
+