Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 190706 Details for
Bug 269063
net-wireless/hostapd init script is not POSIX-compliant
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
hostapd-initd.patch
hostapd-initd.patch (text/plain), 1.20 KB, created by
Davide Pesavento (RETIRED)
on 2009-05-08 21:21:19 UTC
(
hide
)
Description:
hostapd-initd.patch
Filename:
MIME Type:
Creator:
Davide Pesavento (RETIRED)
Created:
2009-05-08 21:21:19 UTC
Size:
1.20 KB
patch
obsolete
>diff -Naur a/hostapd-0.6.9-init.d b/hostapd-0.6.9-init.d >--- a/hostapd-0.6.9-init.d 2009-05-08 22:49:46.000000000 +0200 >+++ b/hostapd-0.6.9-init.d 2009-05-08 22:54:58.000000000 +0200 >@@ -6,12 +6,12 @@ > opts="start stop reload" > > depend() { >- local iface >- >+ local myneeds= > for iface in ${INTERFACES}; do >- need net.${iface} >+ myneeds="${myneeds} net.${iface}" > done > >+ [ -n "${myneeds}" ] && need ${myneeds} > use logger > } > >@@ -19,7 +19,7 @@ > local file > > for file in ${CONFIGS}; do >- if [[ ! -r ${file} ]]; then >+ if [ ! -r "${file}" ]; then > eerror "hostapd configuration file (${CONFIG}) not found" > return 1 > fi >@@ -29,22 +29,22 @@ > start() { > checkconfig || return 1 > >- ebegin "Starting hostapd" >+ ebegin "Starting ${SVCNAME}" > start-stop-daemon --start --exec /usr/sbin/hostapd \ > -- -B ${OPTIONS} ${CONFIGS} >- eend ${?} >+ eend $? > } > > stop() { >- ebegin "Stopping hostapd" >+ ebegin "Stopping ${SVCNAME}" > start-stop-daemon --stop --exec /usr/sbin/hostapd >- eend ${?} >+ eend $? > } > > reload() { > checkconfig || return 1 > >- ebegin "Reloading hostapd configuration" >+ ebegin "Reloading ${SVCNAME} configuration" > kill -HUP $(pidof /usr/sbin/hostapd) > /dev/null 2>&1 >- eend ${?} >+ 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 269063
: 190706