Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 373096 Details for
Bug 505166
net-wireless/hostapd improved init script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
hostapd-init.d.diff
hostapd-init.d.diff (text/plain), 1.11 KB, created by
Lars Wendler (Polynomial-C) (RETIRED)
on 2014-03-20 13:15:32 UTC
(
hide
)
Description:
hostapd-init.d.diff
Filename:
MIME Type:
Creator:
Lars Wendler (Polynomial-C) (RETIRED)
Created:
2014-03-20 13:15:32 UTC
Size:
1.11 KB
patch
obsolete
>--- hostapd-init.d 2011-09-25 16:03:46.000000000 +0200 >+++ hostapd-init.d 2014-03-20 13:51:04.941939054 +0100 >@@ -3,6 +3,10 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-init.d,v 1.3 2011/09/25 14:03:46 gurligebis Exp $ > >+pidfile="/var/run/${SVCNAME}.pid" >+command="/usr/sbin/hostapd" >+command_args="-P ${pidfile} -B ${OPTIONS} ${CONFIGS}" >+ > extra_started_commands="reload" > > depend() { >@@ -15,7 +19,7 @@ > use logger > } > >-checkconfig() { >+start_pre() { > local file > > for file in ${CONFIGS}; do >@@ -26,25 +30,10 @@ > done > } > >-start() { >- checkconfig || return 1 >- >- ebegin "Starting ${SVCNAME}" >- start-stop-daemon --start --exec /usr/sbin/hostapd \ >- -- -B ${OPTIONS} ${CONFIGS} >- eend $? >-} >- >-stop() { >- ebegin "Stopping ${SVCNAME}" >- start-stop-daemon --stop --exec /usr/sbin/hostapd >- eend $? >-} >- > reload() { >- checkconfig || return 1 >+ start_pre || return 1 > > ebegin "Reloading ${SVCNAME} configuration" >- kill -HUP $(pidof /usr/sbin/hostapd) > /dev/null 2>&1 >+ kill -HUP $(cat ${pidfile}) > /dev/null 2>&1 > eend $? > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 505166
:
373094
| 373096