Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 505166

Summary: net-wireless/hostapd improved init script
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Component: Current packagesAssignee: Bjarke Istrup Pedersen (RETIRED) <gurligebis>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Low    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: hostapd-init.d
hostapd-init.d.diff

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