Browse Source

Merge pull request #12572 from jow-/minidlna-fix-reload

minidlna: restore service triggers
lilik-openwrt-22.03
Rosen Penev 4 years ago
committed by GitHub
parent
commit
77780ea546
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions
  1. +1
    -1
      multimedia/minidlna/Makefile
  2. +5
    -1
      multimedia/minidlna/files/minidlna.init

+ 1
- 1
multimedia/minidlna/Makefile View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=minidlna
PKG_RELEASE:=6
PKG_RELEASE:=7
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://git.code.sf.net/p/minidlna/git


+ 5
- 1
multimedia/minidlna/files/minidlna.init View File

@ -83,7 +83,7 @@ start_service() {
[ "$enabled" -gt 0 ] || return 1
config_get val "config" uuid
[ "$val" = '' ] && uci set minidlna.config.uuid="$(cat /proc/sys/kernel/random/uuid)" && uci commit
[ "$val" = '' ] && uci set minidlna.config.uuid="$(cat /proc/sys/kernel/random/uuid)" && uci commit minidlna
minidlna_create_config config || return 1
@ -103,3 +103,7 @@ start_service() {
procd_set_param respawn
procd_close_instance
}
service_triggers() {
procd_add_reload_trigger "minidlna"
}

Loading…
Cancel
Save