Gentoo Archives: gentoo-commits

From: "Bjarke Istrup Pedersen (gurligebis)" <gurligebis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/hostapd/files: hostapd-0.6.9-conf.d hostapd-0.6.9-init.d hostapd-0.6.7-conf.d hostapd-0.6.7-init.d
Date: Tue, 24 Mar 2009 23:23:32
Message-Id: E1LmFxy-0005nz-L9@stork.gentoo.org
1 gurligebis 09/03/24 23:23:30
2
3 Added: hostapd-0.6.9-conf.d hostapd-0.6.9-init.d
4 Removed: hostapd-0.6.7-conf.d hostapd-0.6.7-init.d
5 Log:
6 Bumping to 0.6.9 and removing 0.6.7
7 (Portage version: 2.2_rc27/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 net-wireless/hostapd/files/hostapd-0.6.9-conf.d
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/files/hostapd-0.6.9-conf.d?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/files/hostapd-0.6.9-conf.d?rev=1.1&content-type=text/plain
14
15 Index: hostapd-0.6.9-conf.d
16 ===================================================================
17 # Space separated List of interfaces which needs to be started before
18 # hostapd
19 INTERFACES="wlan0"
20
21 # Space separated list of configuration files
22 CONFIGS="/etc/hostapd/hostapd.conf"
23
24 # Extra options to pass to hostapd, see hostapd(8)
25 OPTIONS=""
26
27
28
29 1.1 net-wireless/hostapd/files/hostapd-0.6.9-init.d
30
31 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/files/hostapd-0.6.9-init.d?rev=1.1&view=markup
32 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/files/hostapd-0.6.9-init.d?rev=1.1&content-type=text/plain
33
34 Index: hostapd-0.6.9-init.d
35 ===================================================================
36 #!/sbin/runscript
37 # Copyright 1999-2006 Gentoo Foundation
38 # Distributed under the terms of the GNU General Public License v2
39 # $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 $
40
41 opts="start stop reload"
42
43 depend() {
44 local iface
45
46 for iface in ${INTERFACES}; do
47 need net.${iface}
48 done
49
50 use logger
51 }
52
53 checkconfig() {
54 local file
55
56 for file in ${CONFIGS}; do
57 if [[ ! -r ${file} ]]; then
58 eerror "hostapd configuration file (${CONFIG}) not found"
59 return 1
60 fi
61 done
62 }
63
64 start() {
65 checkconfig || return 1
66
67 ebegin "Starting hostapd"
68 start-stop-daemon --start --exec /usr/sbin/hostapd \
69 -- -B ${OPTIONS} ${CONFIGS}
70 eend ${?}
71 }
72
73 stop() {
74 ebegin "Stopping hostapd"
75 start-stop-daemon --stop --exec /usr/sbin/hostapd
76 eend ${?}
77 }
78
79 reload() {
80 checkconfig || return 1
81
82 ebegin "Reloading hostapd configuration"
83 kill -HUP $(pidof /usr/sbin/hostapd) > /dev/null 2>&1
84 eend ${?}
85 }