minidlna: fix creation of /var/etc on start

When dnsmasq is disabled, /var/etc doesn't exist. minidlna start was then failing. Partially reverted commit 733aae9 which broke this.

Signed-off-by: Peter Maivald <plasticassius@gmail.com>
This commit is contained in:
Peter Maivald authored and Alexandru Ardelean committed 2026-05-16 10:56:53 +03:00
1 parent dc83108af4
commit 8871b5c5ea
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=minidlna
PKG_VERSION:=1.3.3
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/minidlna
+3 -1
View File
@@ -45,6 +45,7 @@ minidlna_create_config() {
{ [ -z "$interface" ] || [ -t "$port" ]; } && return 1
mkdir -p /var/etc
{
echo "# this file is generated automatically, don't edit"
echo "port=$port"
@@ -67,9 +68,10 @@ minidlna_create_config() {
minidlna_cfg_addstr "$cfg" root_container '.'
minidlna_cfg_addstr "$cfg" uuid '019f9a56-ff60-44c0-9edc-eae88d09fa05'
config_list_foreach "$cfg" "media_dir" minidlna_cfg_add_media_dir
} > "$MINIDLNA_CONFIG_FILE"
return 0
} > "$MINIDLNA_CONFIG_FILE"
}
start_service() {
local enabled