mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
obuspa: Option to configure DualStack preference
This commit is contained in:
parent
6f1953e4a4
commit
bfdd27f72a
2 changed files with 12 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue