MiniDLNA updated, causes problems

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
apa64
Posts: 9
Joined: Tue May 01, 2012 2:42 am

MiniDLNA updated, causes problems

Post by apa64 »

I installed minidlna to my Gargoyle 1.5.9. The current package seems to be minidlna-1.0.24-1. It is not perfectly compatible with Gargoyle, they've done something with the configuration and startup:

Code: Select all

# opkg files minidlna
Package minidlna (1.0.24-1) is installed on root and has the following files:
/etc/init.d/minidlna
/usr/bin/minidlna
/etc/config/minidlna
I googled around a bit and it seems that OpenWRT has some kind of web based configuration thing which uses /etc/config/minidlna. This file is not a minidlna config file, instead it's something which is used to generate /etc/minidlna.conf. See here: http://diantokam.blogspot.fi/2012/11/op ... erver.html

I got enough information from openwrt wiki and other sources to write a good conf. But even worse is that /etc/init.d/minidlna has been changed to work only with the new config thingy. Next, I'm trying to hunt down an older init.d script.

So... if you use minidlna, don't update it yet, or at least save the startup script and conf file.
Last edited by apa64 on Mon Feb 18, 2013 2:55 pm, edited 1 time in total.

apa64
Posts: 9
Joined: Tue May 01, 2012 2:42 am

Re: MiniDLNA updated, causes problems

Post by apa64 »

/etc/init.d/minidlna from minidlna_1.0.19-1_ar71xx.ipk

Code: Select all

#!/bin/sh /etc/rc.common
# Copyright (C) 2010 OpenWrt.org

START=50
BIN=/usr/bin/minidlna
PID=/var/run/minidlna.pid
SSD=start-stop-daemon

start() {
	$SSD -p $PID -S -x $BIN -- -P $PID -R
}

stop() {
	$SSD -p $PID -K -s SIGINT
}

Post Reply