Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505166 - net-wireless/hostapd improved init script
Summary: net-wireless/hostapd improved init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low enhancement (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-20 13:14 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2014-03-21 19:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
hostapd-init.d (hostapd-init.d,862 bytes, text/plain)
2014-03-20 13:14 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
hostapd-init.d.diff (hostapd-init.d.diff,1.11 KB, patch)
2014-03-20 13:15 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-03-20 13:14:39 UTC
Created attachment 373094 [details]
hostapd-init.d

Hi,

please find attached an improved init script for hostapd.
It uses new features from openrc and can be used as drop-in replacement for the current init script.

The changes are:

- it uses default start()/stop() functions from openrc
- it uses a pidfile to store/obtain PID from running hostapd
- less code in the script


If you have any questions or need some help please let me know.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-03-20 13:15:32 UTC
Created attachment 373096 [details, diff]
hostapd-init.d.diff

The diff to show changes betweeen current and new init script.
Comment 2 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2014-03-21 19:47:44 UTC
Fixed, I have also moved the pid file from /var/run to /run