Page 1 of 1

WDLXTV 0.5.8.1 - mount.watch does not honor config setting

PostPosted: Sun Aug 29, 2010 5:23 am
by ajoergensen
mount.watch runs regardless of the setting in /conf/config - it seem to be because the value is stored as "MOUNTWATCH='OFF'" while the script looks for "MOUNTWATCH=OFF"

Code: Select all
Index: usr/bin/mount.watch
===================================================================
--- usr/bin/mount.watch   (revision 1)
+++ usr/bin/mount.watch   (working copy)
@@ -1,7 +1,12 @@
#!/bin/sh

-[ "`egrep -i '^MOUNTWATCH=OFF' /conf/config`" != "" ] && exit 0
+. /conf/config

+if [ "$MOUNTWATCH" == "OFF" ]
+ then
+   exit 0
+fi
+
logger -t mount.watch "starting"
sleep 2
ROOT=/tmp/media/usb