1 #!/bin/sh /etc/rc.common
11 config_get_bool disabled
"$cfg" disabled
0
13 [ "$disabled" -gt 0 ] && return
15 config_get ca
"$cfg" ca_cert
16 config_get key
"$cfg" key
17 config_get cert
"$cfg" cert
18 config_get users
"$cfg" users
19 config_get clients
"$cfg" clients
20 config_get auth_port
"$cfg" auth_port
1812
21 config_get acct_port
"$cfg" acct_port
1813
22 config_get identity
"$cfg" identity
"$(cat /proc/sys/kernel/hostname)"
24 procd_open_instance
$cfg
25 procd_set_param
command /usr
/sbin
/hostapd-radius \
27 -c "$cert" -k "$key" \
28 -s "$clients" -u "$users" \
29 -p "$auth_port" -P "$acct_port" \
36 config_foreach radius_start radius
41 procd_add_reload_trigger
"radius"