Intex Aquafish Linux file browsing via USB
There is a little problem with Intex Aquafish when handled on my debian jessie linux system. I get it recognized only as MTP Imaging device and can not mount or unmount, so that I can transfer files from and to the phone.
After reading few threads I came to following based on similar issue with Jolla. It is not the best solution, but for the time being it works pretty well.
WARNING: Unfortunately it can handle only one device. If you intend to use more than one, adjust the script
Install jmtpfs and mtp-tools
apt-get install jmtpfs
apt-get install mtp-tools
save a file /usr/bin/intexMounter.sh with following content:
#!/bin/bash
usage() { echo "Usage: $0 -m (to mount) | -u (umount) " 1>&2; exit 1;}
########
#vars
userName=`whoami`
deviceName=`jmtpfs -l 2>/dev/null| grep 0a07 | tr ',' ' ' | awk '{print $5}' `
device=`jmtpfs -l 2>/dev/null| grep 0a07 | tr ',' ' ' | awk '{print $1","$2}' `
#if its unpluging theres no device so... deviceName=IntexSailfish
if [[ -z $deviceName || $deviceName == 'UNKNOWN' ]]; then
deviceName="IntexSailfish-"$(echo $device|tr ',' '-')
fi
mountPath="/home/${userName}/${deviceName}"
#now its not used becuse mountPath is no equal at desktopPath
########
#chech arguments
if [ $# -ne 1 ]
then
usage
exit 1
fi
#parse options
while getopts ":mu" o; do
case "${o}" in
m)
echo "mount "${device}" "${mountPath}
test -d ${mountPath} || mkdir -p ${mountPath}
jmtpfs -device=${device} ${mountPath}
;;
u)
echo "fusermount -u ${mountPath}"
fusermount -u ${mountPath}
rmdir ${mountPath}
;;
*)
usage
;;
esac
done
NOTE: set 755 permissions to above file
NOTE: When plugging in USB cable and prompted, select PC-Suite
to mount
/usr/bin/intexMounter.sh -m
to umount
/usr/bin/intexMounter.sh -u