Guest User

Untitled

a guest
May 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/bin/bash
  2. random=1
  3. while [[ $random = 1 ]]
  4. do
  5.  
  6. if [[ -n $(pgrep cairo-dock) ]] ; then
  7. input=$(zenity --text "Would you like to mount the NFS share?[y/n]" --entry)
  8. retval=$?
  9. shopt -s nocasematch
  10. case $retval in
  11. 0) if [[ $input =~ y ]] ; then
  12. mount 192.168.1.17:/usr/home/alex /home/NFSShare
  13. random=2
  14. elif [[ $input =~ n ]] ; then
  15. exit
  16. else
  17. exit
  18. fi
  19. ;;
  20. 1) echo "Oops."
  21. ;;
  22. esac
  23. fi
  24. done
Add Comment
Please, Sign In to add comment