Ticket #27649: mount_ntfs.2
| File mount_ntfs.2, 470 bytes (added by markus.doits@…, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | args=${@} |
| 4 | volname=${args##*/} |
| 5 | cleaned_volname=${volname//,/_} |
| 6 | |
| 7 | @@PREFIX@@/sbin/ntfs-3g -o auto_xattr,local,volname="$cleaned_volname" "$@" |
| 8 | |
| 9 | # wait at most 15 seconds for the mount to happen |
| 10 | # this prevents the system to use the mount point before the volume is mounted |
| 11 | |
| 12 | # get the mount point (last argument) |
| 13 | for mount_point; do true; done |
| 14 | |
| 15 | count=0; |
| 16 | while [ -z "$(mount | grep "$mount_point")" ] && [ "$count" -le "15" ]; do count=$(($count+1)); sleep 1; done |

