From 50e2add3aba9a3be1e9be3004f01073295dd110a Mon Sep 17 00:00:00 2001 From: Vivek Kumar Dutta Date: Wed, 19 Mar 2025 18:32:49 +0530 Subject: [PATCH] swmodd: updated root path to /apps --- swmodd/Makefile | 4 +++- swmodd/files/etc/config/swmodd | 1 - swmodd/files/etc/uci-defaults/04-update-root-path | 6 ++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 swmodd/files/etc/uci-defaults/04-update-root-path diff --git a/swmodd/Makefile b/swmodd/Makefile index 13c4b5f23..86673836a 100755 --- a/swmodd/Makefile +++ b/swmodd/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=swmodd -PKG_VERSION:=2.5.25 +PKG_VERSION:=2.5.26 LOCAL_DEV:=0 ifneq ($(LOCAL_DEV),1) @@ -85,6 +85,8 @@ define Package/swmodd/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/opkg_offline.sh $(1)/usr/share/swmodd/opkg_offline $(INSTALL_BIN) ./files/etc/uci-defaults/01-fix-bundle-path $(1)/etc/uci-defaults/01-fix-bundle-path $(INSTALL_BIN) ./files/etc/uci-defaults/03-execenv-ref $(1)/etc/uci-defaults/03-execenv-ref + $(INSTALL_BIN) ./files/etc/uci-defaults/04-update-root-path $(1)/etc/uci-defaults/04-update-root-path + ifeq ($(CONFIG_PACKAGE_liblxc),y) $(INSTALL_DIR) $(1)/usr/share/lxc/templates/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/templates/lxc-iopsys $(1)/usr/share/lxc/templates/lxc-iopsys diff --git a/swmodd/files/etc/config/swmodd b/swmodd/files/etc/config/swmodd index 7fe4823d0..cc669de27 100644 --- a/swmodd/files/etc/config/swmodd +++ b/swmodd/files/etc/config/swmodd @@ -3,7 +3,6 @@ config globals 'globals' option debug '1' option log_level '3' option lan_bridge 'br-lan' - option root '/container' config execenv 'execenv_1' option name 'oci' diff --git a/swmodd/files/etc/uci-defaults/04-update-root-path b/swmodd/files/etc/uci-defaults/04-update-root-path new file mode 100644 index 000000000..7f2b744ef --- /dev/null +++ b/swmodd/files/etc/uci-defaults/04-update-root-path @@ -0,0 +1,6 @@ +#!/bin/sh + +# exit if swmodd uci not present +[ -f "/etc/config/swmodd" ] || exit 0 + +uci -q set swmodd.globals.root="/apps"