1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 12:53:54 +02:00

wsdd2: fix infinite loop when BI_PARM is never set

If BI_PARM is never set, it's "" and causes
infinite loop (before my PR sent upstream) or
error out (after my PR sent upstream).
Append -b option only if it's valid.

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
This commit is contained in:
Syrone Wong 2020-05-06 07:49:04 +08:00
parent 76f5cf1a28
commit 48d9521ecd

View File

@ -68,7 +68,7 @@ start_service() {
[ -n "$ifname" ] && procd_append_param command -i "$ifname"
procd_append_param command -N "$NB_PARM"
procd_append_param command -G "$WG_PARM"
procd_append_param command -b "$BI_PARM"
[ "x${BI_PARM}" != "x" ] && procd_append_param command -b "$BI_PARM"
procd_set_param respawn
procd_set_param file "$SMB_CONF"
procd_close_instance