obuspa: 10.0.7.6

This commit is contained in:
Vivek Kumar Dutta 2025-11-03 22:00:43 +05:30
parent 21e6193e0a
commit 31cd59b33c
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C
3 changed files with 5 additions and 19 deletions

View file

@ -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)

View file

@ -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

View file

@ -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)"