mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Give hostapd dir as parameter
This commit is contained in:
parent
29fe04b1f0
commit
976f90efc3
5 changed files with 23 additions and 9 deletions
|
|
@ -2,4 +2,5 @@ config 'settings' 'dawn'
|
|||
option broadcast_ip '192.186.1.255'
|
||||
option broadcast_port '1025'
|
||||
option sort_order 'cfsb'
|
||||
option hostapd_dir '/var/run/hostapd'
|
||||
option background '0'
|
||||
|
|
@ -14,11 +14,15 @@ start_service()
|
|||
|
||||
local broadcast_ip
|
||||
local broadcast_port
|
||||
local sort_order
|
||||
local hostapd_dir
|
||||
|
||||
config_load "${NAME}"
|
||||
config_get broadcast_ip dawn broadcast_ip
|
||||
config_get broadcast_port dawn broadcast_port
|
||||
config_get sort_order dawn sort_order
|
||||
config_get hostapd_dir dawn hostapd_dir
|
||||
|
||||
|
||||
procd_open_instance
|
||||
echo "$PROG -p $broadcast_port -i $broadcast_ip -o $sort_order"
|
||||
|
|
@ -26,7 +30,7 @@ start_service()
|
|||
procd_append_param command -p "${broadcast_port}"
|
||||
procd_append_param command -i "${broadcast_ip}"
|
||||
procd_append_param command -o "${sort_order}"
|
||||
|
||||
procd_append_param command -h "${hostapd_dir}"
|
||||
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue