mirror of
https://github.com/openwrt/packages.git
synced 2026-05-30 03:36:24 +08:00
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:
committed by
Alexandru Ardelean
parent
dc83108af4
commit
8871b5c5ea
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user