From f7ea6935b1f44709deb0901bfdec6a2a87c269a5 Mon Sep 17 00:00:00 2001 From: Bjarke Istrup Pedersen Date: Tue, 24 Mar 2009 23:23:30 +0000 Subject: Bumping to 0.6.9 and removing 0.6.7 (Portage version: 2.2_rc27/cvs/Linux i686) --- net-wireless/hostapd/files/hostapd-0.6.7-conf.d | 9 ----- net-wireless/hostapd/files/hostapd-0.6.7-init.d | 50 ------------------------- net-wireless/hostapd/files/hostapd-0.6.9-conf.d | 9 +++++ net-wireless/hostapd/files/hostapd-0.6.9-init.d | 50 +++++++++++++++++++++++++ 4 files changed, 59 insertions(+), 59 deletions(-) delete mode 100644 net-wireless/hostapd/files/hostapd-0.6.7-conf.d delete mode 100644 net-wireless/hostapd/files/hostapd-0.6.7-init.d create mode 100644 net-wireless/hostapd/files/hostapd-0.6.9-conf.d create mode 100644 net-wireless/hostapd/files/hostapd-0.6.9-init.d (limited to 'net-wireless/hostapd/files') diff --git a/net-wireless/hostapd/files/hostapd-0.6.7-conf.d b/net-wireless/hostapd/files/hostapd-0.6.7-conf.d deleted file mode 100644 index 7d05735eb3b4..000000000000 --- a/net-wireless/hostapd/files/hostapd-0.6.7-conf.d +++ /dev/null @@ -1,9 +0,0 @@ -# Space separated List of interfaces which needs to be started before -# hostapd -INTERFACES="wlan0" - -# Space separated list of configuration files -CONFIGS="/etc/hostapd/hostapd.conf" - -# Extra options to pass to hostapd, see hostapd(8) -OPTIONS="" diff --git a/net-wireless/hostapd/files/hostapd-0.6.7-init.d b/net-wireless/hostapd/files/hostapd-0.6.7-init.d deleted file mode 100644 index f42a75e1746f..000000000000 --- a/net-wireless/hostapd/files/hostapd-0.6.7-init.d +++ /dev/null @@ -1,50 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.6.7-init.d,v 1.1 2009/01/06 19:43:22 gurligebis 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 --exec /usr/sbin/hostapd \ - -- -B ${OPTIONS} ${CONFIGS} - eend ${?} -} - -stop() { - ebegin "Stopping hostapd" - start-stop-daemon --stop --exec /usr/sbin/hostapd - eend ${?} -} - -reload() { - checkconfig || return 1 - - ebegin "Reloading hostapd configuration" - kill -HUP $(pidof /usr/sbin/hostapd) > /dev/null 2>&1 - eend ${?} -} diff --git a/net-wireless/hostapd/files/hostapd-0.6.9-conf.d b/net-wireless/hostapd/files/hostapd-0.6.9-conf.d new file mode 100644 index 000000000000..7d05735eb3b4 --- /dev/null +++ b/net-wireless/hostapd/files/hostapd-0.6.9-conf.d @@ -0,0 +1,9 @@ +# Space separated List of interfaces which needs to be started before +# hostapd +INTERFACES="wlan0" + +# Space separated list of configuration files +CONFIGS="/etc/hostapd/hostapd.conf" + +# Extra options to pass to hostapd, see hostapd(8) +OPTIONS="" diff --git a/net-wireless/hostapd/files/hostapd-0.6.9-init.d b/net-wireless/hostapd/files/hostapd-0.6.9-init.d new file mode 100644 index 000000000000..37f79f5fc3c0 --- /dev/null +++ b/net-wireless/hostapd/files/hostapd-0.6.9-init.d @@ -0,0 +1,50 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.6.9-init.d,v 1.1 2009/03/24 23:23:30 gurligebis 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 --exec /usr/sbin/hostapd \ + -- -B ${OPTIONS} ${CONFIGS} + eend ${?} +} + +stop() { + ebegin "Stopping hostapd" + start-stop-daemon --stop --exec /usr/sbin/hostapd + eend ${?} +} + +reload() { + checkconfig || return 1 + + ebegin "Reloading hostapd configuration" + kill -HUP $(pidof /usr/sbin/hostapd) > /dev/null 2>&1 + eend ${?} +} -- cgit v1.2.3-65-gdbad