Sfoglia il codice sorgente

Mount, but avoid recursion from mountMedia

Zachary Kotlarek 9 anni fa
parent
commit
d8aa47f35c
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7 1
      mediaPath

+ 7 - 1
mediaPath

@@ -15,5 +15,11 @@ if [ -d "${MEDIA}/TV" ]; then
 	exit 0
 fi
 
-# Return false if we don't find anything
+# If we didn't find anything attempt to mount
+MOUNT="${HOME}/bin/video/mountMedia"
+if [ -x "${MOUNT}" ] && [ -z "${MEDIA_MOUNTING}" ]; then
+	"${MOUNT}"
+fi
+
+# Fail even if the mount succeeds, so that children can see the error
 exit 1