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
commitee3d6f2270ed1821d421ba8733fb4449aec1d7d6 (patch)
tree569005d7d6637c49c9065f729054b1b4134c80de /net-wireless/hostapd/files
parentStable for x86. (diff)
downloadgentoo-2-ee3d6f2270ed1821d421ba8733fb4449aec1d7d6.tar.gz
gentoo-2-ee3d6f2270ed1821d421ba8733fb4449aec1d7d6.tar.bz2
gentoo-2-ee3d6f2270ed1821d421ba8733fb4449aec1d7d6.zip
New development snapshot.
(Portage version: 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 ${?}
+}