Advertisement
Guest User

antiX Android device mounter

a guest
Oct 21st, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.04 KB | None | 0 0
  1. #!/bin/sh
  2. yad --center --width=440 --height=200 --borders=10 --title="antiX Android device mounter" \
  3. --image="/usr/share/icons/numix-square-antix/48x48/apps/distributor-logo-android.png" \
  4. --text=" 1- Connect your android device with your computer using a USB cable,\n 2- On the android device, select the 'MTP...' option (you may have to use a pulldown menu, it varies according the version of the OS your device uses) \n 3- Press the 'Ok' button on the bottom of this window. \n You'll then be able to navigate through your android device filesystems using  a File Manager that will automatically open,\n  The device is mounted under 'jmtpfs...' \n NOTE: Don't forget to 'unmount' the device when you are done, using the File Manager (clicking the jmtpfs and selecting 'unmount')" \
  5.  
  6. #check of the folder where the android device exists. If not, create it.
  7. if [ ! -d "~/android-device" ]; then
  8.  mkdir ~/android-device
  9. fi
  10.  
  11. #mount the android device on the folder and open it on space-fm FileManager
  12.  jmtpfs ~/android-device && spacefm ~/android-device
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement