x13thangelx

mount script

Sep 11th, 2011
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. su -c "
  4. if [ -e /mnt/phone ]
  5. then
  6. umount /mnt/phone
  7. rmdir /mnt/phone
  8. else
  9. mkdir /mnt/phone
  10. mount -t vfat /dev/sdc1 /mnt/phone
  11. mount -t vfat /dev/sdb1 /mnt/phone
  12. fi
  13. "
Advertisement
Add Comment
Please, Sign In to add comment