conf/116659: [patch] Add reload functionality to /etc/rc.d/hostapd

Henrik Brix Andersen henrik at brixandersen.dk
Wed Sep 26 04:40:02 PDT 2007


>Number:         116659
>Category:       conf
>Synopsis:       [patch] Add reload functionality to /etc/rc.d/hostapd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 26 11:40:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Henrik Brix Andersen
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD lothlorien.brixandersen.dk 7.0-CURRENT FreeBSD 7.0-CURRENT #73: Mon Sep 24 14:11:27 CEST 2007 root at lothlorien.brixandersen.dk:/usr/obj/usr/src/sys/LOTHLORIEN i386


	
>Description:
Add reload functionality to /etc/rc.d/hostapd, useful for reloading
the configuration when new WPA passphrases etc. are added.

	
>How-To-Repeat:
	
>Fix:

	

--- hostapd-reload.diff begins here ---
--- etc/rc.d/hostapd.orig	2007-09-26 12:10:56.000000000 +0200
+++ etc/rc.d/hostapd	2007-09-26 12:12:01.000000000 +0200
@@ -14,9 +14,12 @@ command="/usr/sbin/${name}"
 rcvar=`set_rcvar`
 
 conf_file="/etc/${name}.conf"
+pidfile="/var/run/${name}.pid"
 
-command_args="-B ${conf_file}"
+command_args="-P ${pidfile} -B ${conf_file}"
 required_files="${conf_file}"
 
+extra_commands="reload"
+
 load_rc_config ${name}
 run_rc_command "$1"
--- hostapd-reload.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list