swmodd: 2.5.22

This commit is contained in:
Vivek Kumar Dutta 2025-03-05 19:23:26 +05:30
parent 320d155a96
commit 5474007dcf
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C
3 changed files with 13 additions and 2 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=swmodd
PKG_VERSION:=2.5.21
PKG_VERSION:=2.5.22
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)

View file

@ -240,6 +240,13 @@ start_service() {
boot=0
fi
# crun default runtime directory /run, if not present then create
if [ ! -d "/run" ]; then
if [ ! -L "/run" ]; then
ln -fs /var/run /run
fi
fi
config_load swmodd
config_get root globals root ""
config_get bridge globals lan_bridge "br-lan"

View file

@ -88,7 +88,11 @@ start_service() {
[ "${enabled}" -eq 0 ] && return 0
# crun default runtime directory /run, if not present then create
[ ! -d "/run" ] && ln -fs /var/run /run
if [ ! -d "/run" ]; then
if [ ! -L "/run" ]; then
ln -fs /var/run /run
fi
fi
if [ -L "${root}" ]; then
if [ ! -d "${root}" ]; then