Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Mine
Saturday, October 27th, 2007 at 3:34:30am UTC 

  1. #!/bin/bash
  2. # mount
  3.  
  4. gksudo -k /bin/echo "got r00t?"
  5.  
  6. BASENAME=`basename $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS .iso`
  7.  
  8. sudo mkdir "/media/$BASENAME"
  9.  
  10. zenity --info --title "ISO Mounter" --text "$BASENAME e $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"
  11.  
  12.  
  13. if sudo mount -o loop -t iso9660 $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS "/media/$BASENAME"
  14. then
  15. if zenity --question --title "ISO Mounter" --text "$BASENAME Successfully Mounted. Open Volume?"
  16.  
  17. then
  18. nautilus /media/"$BASENAME" --no-desktop
  19. fi
  20.  
  21. exit 0
  22. else
  23. sudo rmdir "/media/$BASENAME"
  24.  
  25. zenity --error --title "ISO Mounter" --text "Cannot mount $BASENAME!"
  26.  
  27. exit 1
  28. fi
  29.  
  30.  
  31.  
  32.  
  33. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  34.  
  35.  
  36.  
  37. #!/bin/bash
  38. # unmount
  39.  
  40. gksudo -k /bin/echo "got r00t?"
  41.  
  42. BASENAME=`basename $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS .iso`
  43.  
  44. sudo umount "/media/$BASENAME"
  45.  
  46. sudo rmdir "/media/$BASENAME"
  47.  
  48. zenity --info --text "Successfully unmounted /media/$BASENAME"
  49.  
  50. exit 0

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right