swmodd: updated root path to /apps

This commit is contained in:
Vivek Kumar Dutta 2025-03-19 18:32:49 +05:30 committed by Andreas Gnau
parent e33340ea8d
commit 50e2add3ab
3 changed files with 9 additions and 2 deletions

View file

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

View file

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

View file

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