Mount NTFS read-write
@@ -71,6 +71,14 @@ do_mount()
OVERLAY=0
fi
+ if [[ ${ID_FS_TYPE} == "ntfs" ]]; then
+ OPTS+=" -t ntfs-3g"
+ OVERLAY=0
+ fi
+
+ # Do not support overlays (for now)
+ OVERLAY=0
+
if ! /bin/mount -o ${OPTS} ${DEVICE} ${MOUNT_POINT}; then
# Error during mount process: cleanup mountpoint
/bin/rmdir ${MOUNT_POINT}
@@ -90,12 +98,8 @@ do_mount()
fi
else
echo "Creating symlink as ${ID_FS_TYPE} does not support overlays"
- if [ -L ${MUSICDIR}/${LABEL} ]; then
- rm ${MUSICDIR}/${LABEL}
- fi
-
if [ -a ${MUSICDIR}/${LABEL} ]; then
- mv ${MUSICDIR}/${LABEL} /data/${LABEL}.bak
+ mv ${MUSICDIR}/${LABEL} ${MUSICDIR}/${LABEL}.bak
fi
ln -s ${MOUNT_POINT} ${MUSICDIR}/${LABEL}
