diff --git a/feeds/ipq807x_v5.4/hostapd/files/afcd.init b/feeds/ipq807x_v5.4/hostapd/files/afcd.init index 184e15d77..a43a6c662 100644 --- a/feeds/ipq807x_v5.4/hostapd/files/afcd.init +++ b/feeds/ipq807x_v5.4/hostapd/files/afcd.init @@ -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 }