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