Ticket #27649: mount_ntfs.2.2

File mount_ntfs.2.2, 469 bytes (added by markus.doits@…, 13 years ago)

small fix for hardcoded prefix and typo

Line 
1#!/bin/sh
2
3args=${@}
4volname=${args##*/}
5cleaned_volname=${volname//,/_}
6
7@@PREFIX@@/bin/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)
13for mount_point; do true; done
14
15count=0;
16while [ -z "$(mount | grep "$mount_point")" ] && [ "$count" -le "15" ]; do count=$(($count+1)); sleep 1; done