mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
obuspa: 10.0.7.6
This commit is contained in:
parent
21e6193e0a
commit
31cd59b33c
3 changed files with 5 additions and 19 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=obuspa
|
PKG_NAME:=obuspa
|
||||||
PKG_VERSION:=10.0.7.5
|
PKG_VERSION:=10.0.7.6
|
||||||
|
|
||||||
LOCAL_DEV:=0
|
LOCAL_DEV:=0
|
||||||
ifneq ($(LOCAL_DEV),1)
|
ifneq ($(LOCAL_DEV),1)
|
||||||
|
|
|
||||||
|
|
@ -53,13 +53,7 @@ add_mdns_advertise() {
|
||||||
json_dump > /etc/umdns/obuspa_mdns.json
|
json_dump > /etc/umdns/obuspa_mdns.json
|
||||||
}
|
}
|
||||||
|
|
||||||
config_load obuspa
|
role="$(get_device_role)"
|
||||||
config_get_bool enable_obuspa global enabled 1
|
if [ "${role}" == "gateway" ]; then
|
||||||
|
add_mdns_advertise
|
||||||
if [ "${enable_obuspa}" -eq 1 ]; then
|
|
||||||
role="$(get_device_role)"
|
|
||||||
|
|
||||||
if [ "${role}" == "gateway" ]; then
|
|
||||||
add_mdns_advertise
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -19,19 +19,11 @@ get_access_role()
|
||||||
|
|
||||||
configure_dhcp_options() {
|
configure_dhcp_options() {
|
||||||
local enabled inerface discovery
|
local enabled inerface discovery
|
||||||
config_load obuspa
|
|
||||||
config_get_bool enabled global enabled 1
|
config_get_bool enabled global enabled 1
|
||||||
config_get interface global interface
|
config_get interface global interface
|
||||||
config_get_bool discovery global dhcp_discovery 1
|
config_get_bool discovery global dhcp_discovery 1
|
||||||
|
|
||||||
if [ "${enabled}" -eq 0 ]; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${discovery}" -eq 0 ]; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${interface}" ]; then
|
if [ -z "${interface}" ]; then
|
||||||
role="$(get_access_role)"
|
role="$(get_access_role)"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue