Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- random=1
- while [[ $random = 1 ]]
- do
- if [[ -n $(pgrep cairo-dock) ]] ; then
- input=$(zenity --text "Would you like to mount the NFS share?[y/n]" --entry)
- retval=$?
- shopt -s nocasematch
- case $retval in
- 0) if [[ $input =~ y ]] ; then
- mount 192.168.1.17:/usr/home/alex /home/NFSShare
- random=2
- elif [[ $input =~ n ]] ; then
- exit
- else
- exit
- fi
- ;;
- 1) echo "Oops."
- ;;
- esac
- fi
- done
Add Comment
Please, Sign In to add comment