obuspa: Option to configure DualStack preference

This commit is contained in:
Suvendhu Hansa 2025-06-20 09:08:20 +05:30 committed by IOPSYS Dev
parent 6f1953e4a4
commit bfdd27f72a
No known key found for this signature in database
2 changed files with 12 additions and 3 deletions

View file

@ -5,13 +5,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=obuspa
PKG_VERSION:=10.0.0.10
PKG_VERSION:=10.0.0.11
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/bbf/obuspa.git
PKG_SOURCE_VERSION:=17704abb7481ced6b176e495a3000a8a9bf9eb96
PKG_SOURCE_VERSION:=e258e1de0f3f679b56f729bd23c435986a5944ad
PKG_MAINTAINER:=Vivek Dutta <vivek.dutta@iopsys.eu>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip

View file

@ -278,6 +278,11 @@ update_reset_reason()
fi
}
update_dual_stack_pref()
{
db_set Internal.DualStackPreference "${1}"
}
get_role_index()
{
local name drole
@ -989,6 +994,8 @@ db_init()
#log "Create reset file ...."
config_load $CONFIGURATION
config_get dualstack_pref global dualstack_pref "IPv4"
global_init
config_foreach configure_localagent localagent
global_init
@ -1003,8 +1010,10 @@ db_init()
config_foreach configure_subscription subscription
global_init
config_foreach configure_challenges challenge
global_init
update_reset_reason
update_dual_stack_pref "${dualstack_pref}"
uci_commit ${CONFIGURATION}
cp /etc/config/obuspa /tmp/obuspa/