Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 27 lines (26 sloc) 642 Bytes
#!/sbin/busybox sh
if [ "$SUBSYSTEM" == "block" ];
then
ls /data/app/*ntfsmounter* && exit
mountdir="/mnt/ntfs"
if [ -f /system/xbin/ntfs-3g ];then
NTFS3GBIN=/system/xbin/ntfs-3g
else
NTFS3GBIN=`which ntfs-3g`
if [ ! -f "$NTFS3GBIN" ];
then
exit
fi
fi
devbase=`basename ${DEVPATH}`
if [ "$ACTION" == "add" ] && [ ${devbase:0:2} == "sd" ];
then
mkdir -p ${mountdir}/${devbase}
$NTFS3GBIN /dev/block/${devbase} ${mountdir}/${devbase} -o ro || rmdir ${mountdir}/${devbase}
fi
if [ "$ACTION" == "remove" ];
then
umount -f ${mountdir}/${devbase}
rmdir ${mountdir}/${devbase}
fi
fi
Something went wrong with that request. Please try again.