summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-12-20 11:11:12 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-12-20 11:11:12 +0000
commit746d6280a84b5312dc4b6d60134ca183c6e8bee9 (patch)
tree8e523fecb5f085f28e51388ac4a37480d92028d4 /net-wireless/hostapd/files
parentStable for x86. (diff)
downloadhistorical-746d6280a84b5312dc4b6d60134ca183c6e8bee9.tar.gz
historical-746d6280a84b5312dc4b6d60134ca183c6e8bee9.tar.bz2
historical-746d6280a84b5312dc4b6d60134ca183c6e8bee9.zip
New development snapshot.
Package-Manager: portage-2.0.51.22-r3
Diffstat (limited to 'net-wireless/hostapd/files')
-rw-r--r--net-wireless/hostapd/files/digest-hostapd-0.5.01
-rw-r--r--net-wireless/hostapd/files/hostapd-0.5.0-conf.d12
-rw-r--r--net-wireless/hostapd/files/hostapd-0.5.0-init.d50
3 files changed, 63 insertions, 0 deletions
diff --git a/net-wireless/hostapd/files/digest-hostapd-0.5.0 b/net-wireless/hostapd/files/digest-hostapd-0.5.0
new file mode 100644
index 000000000000..f5d254f23e44
--- /dev/null
+++ b/net-wireless/hostapd/files/digest-hostapd-0.5.0
@@ -0,0 +1 @@
+MD5 abfe9a3381437e580001b484b7f77335 hostapd-0.5.0.tar.gz 323906
diff --git a/net-wireless/hostapd/files/hostapd-0.5.0-conf.d b/net-wireless/hostapd/files/hostapd-0.5.0-conf.d
new file mode 100644
index 000000000000..0d71d622363f
--- /dev/null
+++ b/net-wireless/hostapd/files/hostapd-0.5.0-conf.d
@@ -0,0 +1,12 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.5.0-conf.d,v 1.1 2005/12/20 11:09:30 brix Exp $
+
+# List of interfaces which needs to be started before hostapd
+INTERFACES="wlan0"
+
+# List of configuration files
+CONFIGS="/etc/hostapd/hostapd.conf"
+
+# Extra options to pass to hostapd
+OPTIONS="-B"
diff --git a/net-wireless/hostapd/files/hostapd-0.5.0-init.d b/net-wireless/hostapd/files/hostapd-0.5.0-init.d
new file mode 100644
index 000000000000..38e1d769a40d
--- /dev/null
+++ b/net-wireless/hostapd/files/hostapd-0.5.0-init.d
@@ -0,0 +1,50 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.5.0-init.d,v 1.1 2005/12/20 11:09:30 brix Exp $
+
+opts="start stop reload"
+
+depend() {
+ local iface
+
+ for iface in ${INTERFACES}; do
+ need net.${iface}
+ done
+
+ use logger
+}
+
+checkconfig() {
+ local file
+
+ for file in ${CONFIGS}; do
+ if [[ ! -r ${file} ]]; then
+ eerror "hostapd configuration file (${CONFIG}) not found"
+ return 1
+ fi
+ done
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting hostapd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/hostapd \
+ -- ${OPTIONS} ${CONFIGS}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping hostapd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/hostapd
+ eend ${?}
+}
+
+reload() {
+ checkconfig || return 1
+
+ ebegin "Reloading hostapd configuration"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/hostapd --signal HUP
+ eend ${?}
+}