User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:mtp [2012/12/30 23:04]
percy [MTP on Gentoo]
linux:mtp [2016/05/05 13:07] (current)
Line 13: Line 13:
 Note should edit  Note should edit 
   vim /​etc/​fuse.conf ​   vim /​etc/​fuse.conf ​
-===== automount mtp  ​=====+===== Auto mount/​umount MTP =====
 <file BASH 99-android-mtp.rules>​ <file BASH 99-android-mtp.rules>​
 #localhost bin # cat /​etc/​udev/​rules.d/​99-android-mtp.rules ​ #localhost bin # cat /​etc/​udev/​rules.d/​99-android-mtp.rules ​
Line 21: Line 21:
 <file BASH>​ <file BASH>​
-localhost bin # cat /​usr/​local/​bin/​ ​+#localhost bin # cat /​usr/​local/​bin/​ ​
 #​!/​bin/​sh ​ #​!/​bin/​sh ​
Line 28: Line 28:
 echo "​Galaxy Nexus mounted on /​media/​galaxy_nexus"​ echo "​Galaxy Nexus mounted on /​media/​galaxy_nexus"​
-</​file>​+</​file ​BASH> 
 +#localhost bin # cat /​usr/​local/​bin/​  
 +#​!/​bin/​sh ​
 +echo "​Galaxy Nexus disconnected"​
 +umount /​media/​galaxy_nexus
 +echo "​Galaxy Nexus umounted on /​media/​galaxy_nexus"​
/var/www/dokuwiki/wiki/data/pages/linux/mtp.txt · Last modified: 2016/05/05 13:07 (external edit)