afcd: allow starting the daemon without a CA

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2024-06-10 06:08:30 +02:00
parent ed543017a3
commit 0037af2a6b

View File

@@ -11,11 +11,11 @@ add_afc() {
config_get url "$1" url
config_get cert "$1" cert
[ -n "$cert" ] || return
[ -n "$url" ] || return
procd_open_instance afcd
procd_set_param command /usr/bin/ucode /usr/share/hostap/afcd.uc -u "$url"
[ -n "$url" ] && procd_append_param command -c "$cert"
[ -n "$cert" ] && procd_append_param command -c "$cert"
procd_set_param respawn
procd_close_instance
}