From b4bef3b8785d54ec0fb8e82a56eca99b0451fc39 Mon Sep 17 00:00:00 2001 From: TomasM Date: Thu, 14 Dec 2017 06:41:46 -0500 Subject: [PATCH] use -o ro instead of -r since ntfs3g doesn't understand -r --- livekitlib | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/livekitlib b/livekitlib index 40560c5..30c103a 100644 --- a/livekitlib +++ b/livekitlib @@ -296,7 +296,7 @@ device_bestfs() } -# Filesystem options for mount +# Filesystem options for initial mount # $1.. = filesystem or '-t filesystem' # returns also the $1.. parameter back where appropriate # @@ -313,13 +313,13 @@ fs_options() fi if [ "$1" = "ntfs-3g" ]; then - return + FS="" fi - echo -n "$FS" + echo -n "$FS -o ro" if [ "$1" = "vfat" ]; then - echo " -o check=s,shortname=mixed,iocharset=utf8" + echo ",check=s,shortname=mixed,iocharset=utf8" fi } @@ -505,7 +505,7 @@ find_data_try() OPTIONS="$(fs_options $FS)" MOUNT="$(mount_command $FS)" - $MOUNT -r "$DEVICE" "$1" $OPTIONS 2>/dev/null + $MOUNT "$DEVICE" "$1" $OPTIONS 2>/dev/null # if the FROM parameter is actual file, mount it again as loop (eg. iso) if [ -f "$1/$FROM" ]; then