What's new

minidlna - delay start

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Fab30

Regular Contributor
Hi, know how i can delay minidlna service start, while router mount all devices and SD card? Its take around 10 sec. THX
 
Which one? Minidlna from firmware or from Entware\Optware?

Please note that /jffs/script/services-start will be started after last USB-partition is mounted, it ignores SD Card partitions. If you want to delay minidlna start till SD Card will be mounted, you may add:
i=0
# Wait up to 15 seconds to make sure SDCARD partition is mounted
while [ $i -le 15 ]
do
if [ -d /tmp/mnt/SDCARD/SomeFolder ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
/opt/etc/init.d/rc.unslung start
to /jffs/script/services-start script.
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top