netifyd: Fixed broken auto-configuration options passing.
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca>
This commit is contained in:
parent
f2b7dce0a4
commit
047306c0e7
2 changed files with 26 additions and 25 deletions
|
@ -6,7 +6,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=netifyd
|
PKG_NAME:=netifyd
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_MAINTAINER:=Darryl Sokoloski <darryl@egloo.ca>
|
PKG_MAINTAINER:=Darryl Sokoloski <darryl@egloo.ca>
|
||||||
PKG_LICENSE:=GPL-3.0-or-later
|
PKG_LICENSE:=GPL-3.0-or-later
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ function append_external_if() {
|
||||||
}
|
}
|
||||||
|
|
||||||
start_netifyd() {
|
start_netifyd() {
|
||||||
local autoconfig enabled instance
|
local autoconfig enabled instance options
|
||||||
|
|
||||||
instance="$1"
|
instance="$1"
|
||||||
config_get_bool enabled "$instance" enabled 0
|
config_get_bool enabled "$instance" enabled 0
|
||||||
|
@ -76,7 +76,8 @@ start_netifyd() {
|
||||||
|
|
||||||
if [ "$autoconfig" -gt 0 ]; then
|
if [ "$autoconfig" -gt 0 ]; then
|
||||||
NETIFYD_AUTODETECT=yes
|
NETIFYD_AUTODETECT=yes
|
||||||
procd_append_param command "$(auto_detect_options)"
|
options="$(auto_detect_options)"
|
||||||
|
[ ! -z "$options" ] && procd_append_param command $options
|
||||||
fi
|
fi
|
||||||
|
|
||||||
config_list_foreach "$instance" internal_if append_internal_if
|
config_list_foreach "$instance" internal_if append_internal_if
|
||||||
|
|
Loading…
Reference in a new issue