Hi here!
I've recently got my hands on an RT-N66U device and have flashed v380.64 on the router.
After setting up all my details, I wanted to get minidlna working on the device.
These are the steps I took - apologies for the lengthy post, just adding as much detail as I can recall:
1. Under USB Application > Media Services and Server > Media Enable UPnP Media Server is OFF.
2. Connected an ext3 formatted 8GB USB drive (/tmp/mnt/Data) and installed entware on it via entware-setup.sh which was successful.
3. Connected a 500GB drive (/tmp/mnt/NAS) formatted with ext3.
4. Ran opkg install minidlna to install minidlna which worked.
5. Edited /opt/etc/minidlna.conf as needed to point to the proper directories and settings.
Now, when i execute minidlna from an SSH window, the DNLA service is started and I can access it without issue across my network. I then rebooted the router and noticed that I could no longer see DNLA, so I went to the SSH window aagain and run minidlna and it is working again.
I did some research and came across https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts which after reading, looks like I need to add minidlna to post-mount. So I simply added the command at the end of this script like so:
/tmp/mnt/Data <- 8GB drive, this is ok
/tmp/mnt/NAS <-500GB drive, this is ok
/tmp/mnt/NAS (1) <- Not sure why this is here
Next I removed minidlna from the post-mount script and rebooted. I then checked the file system again and now only see the two mounts. Launching minidlna manually now works again.
What is it that I am doing wrong?
How can I simply get minidlna to launch after a reboot?
Why do I see /tmp/mnt/NAS (1) when modify the script?
Again, apologies for the lengthy post. I'm coming from using a router based with OpenWRT so am fairly familiar with the concepts on asuswrt-merlin but I simply can't get my head around this.
Thank you!
I've recently got my hands on an RT-N66U device and have flashed v380.64 on the router.
After setting up all my details, I wanted to get minidlna working on the device.
These are the steps I took - apologies for the lengthy post, just adding as much detail as I can recall:
1. Under USB Application > Media Services and Server > Media Enable UPnP Media Server is OFF.
2. Connected an ext3 formatted 8GB USB drive (/tmp/mnt/Data) and installed entware on it via entware-setup.sh which was successful.
3. Connected a 500GB drive (/tmp/mnt/NAS) formatted with ext3.
4. Ran opkg install minidlna to install minidlna which worked.
5. Edited /opt/etc/minidlna.conf as needed to point to the proper directories and settings.
Now, when i execute minidlna from an SSH window, the DNLA service is started and I can access it without issue across my network. I then rebooted the router and noticed that I could no longer see DNLA, so I went to the SSH window aagain and run minidlna and it is working again.
I did some research and came across https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts which after reading, looks like I need to add minidlna to post-mount. So I simply added the command at the end of this script like so:
#!/bin/sh
if [ "$1" = "/tmp/mnt/Data" ] ; then
ln -nsf $1/entware /tmp/opt
fi
# Wait 60 seconds in case mount is not seen, then launch minidlna
sleep 60
minidlna
The script was already set as an executable, so I rebooted the router but minidlna did not start up. I then went to the SSH window again and executed minidlna but this time it complained that it could not find my media directories. I took a look at the file system and notice that I now had 3 mounts instead of 2:if [ "$1" = "/tmp/mnt/Data" ] ; then
ln -nsf $1/entware /tmp/opt
fi
# Wait 60 seconds in case mount is not seen, then launch minidlna
sleep 60
minidlna
/tmp/mnt/Data <- 8GB drive, this is ok
/tmp/mnt/NAS <-500GB drive, this is ok
/tmp/mnt/NAS (1) <- Not sure why this is here
Next I removed minidlna from the post-mount script and rebooted. I then checked the file system again and now only see the two mounts. Launching minidlna manually now works again.
What is it that I am doing wrong?
How can I simply get minidlna to launch after a reboot?
Why do I see /tmp/mnt/NAS (1) when modify the script?
Again, apologies for the lengthy post. I'm coming from using a router based with OpenWRT so am fairly familiar with the concepts on asuswrt-merlin but I simply can't get my head around this.
Thank you!