aboutsummaryrefslogtreecommitdiff
path: root/multimedia/minidlna/files
diff options
context:
space:
mode:
authorAlberto Bursi <bobafetthotmail@gmail.com>2019-12-13 11:12:31 +0100
committerAlberto Bursi <bobafetthotmail@gmail.com>2019-12-13 11:12:31 +0100
commit154f5b6806a3925e7576b92825b9bc5456551693 (patch)
tree44319ea355ab471dfee9b482ad2dc3dec77e6f4d /multimedia/minidlna/files
parentb2a890f6adb9014a6db38c0b4231c42598a8512d (diff)
minidlna: add static uuid in config
minidlna uses UUID to uniquely identify the media server by default, if the "uuid" option is not specified in its setting file it will try to autogenerate it by reading MAC address. This seems to fail on some devices resulting in random UUID on reboot, and this causes confusion and issues as for clients this is a new server and must be added to the list. In OpenWrt there are also devices where the system can't read the true MAC address and it is therefore randomized on reboot. So, add a static UUID in the settings file. Since each mindlna server should have a different UUID, if the user has more than one OpenWrt device with minidlna, he should change the UUID of the additional devices. Signed-off-by: Alberto Bursi <bobafetthotmail@gmail.com>
Diffstat (limited to 'multimedia/minidlna/files')
-rw-r--r--multimedia/minidlna/files/minidlna.config1
-rw-r--r--multimedia/minidlna/files/minidlna.init1
2 files changed, 2 insertions, 0 deletions
diff --git a/multimedia/minidlna/files/minidlna.config b/multimedia/minidlna/files/minidlna.config
index 756983567..5c2ea2850 100644
--- a/multimedia/minidlna/files/minidlna.config
+++ b/multimedia/minidlna/files/minidlna.config
@@ -15,5 +15,6 @@ config minidlna config
option serial '12345678'
option model_number '1'
option root_container '.'
+ option uuid '019f9a56-ff60-44c0-9edc-eae88d09fa05'
list media_dir '/mnt'
option album_art_names 'Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg'
diff --git a/multimedia/minidlna/files/minidlna.init b/multimedia/minidlna/files/minidlna.init
index 0cf3467a4..960f28e44 100644
--- a/multimedia/minidlna/files/minidlna.init
+++ b/multimedia/minidlna/files/minidlna.init
@@ -70,6 +70,7 @@ minidlna_create_config() {
minidlna_cfg_addstr "$cfg" model_number '1'
minidlna_cfg_addstr "$cfg" minissdpsocket
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
return 0