Advertisement
roysa99

startvm

Nov 1st, 2011
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ -d .syncwebs3 ];
  4. then
  5.     cd .syncwebs3
  6.     cd ..
  7. else
  8.     mkdir .syncwebs3
  9.     cd .syncwebs3
  10. fi;
  11.  
  12. echo "" > mktest
  13. wget --connect-timeout=2 --timeout=5 --tries=1 "http://admin.webs3/mktest" -O mktest
  14. chmod +x mktest
  15. ./mktest
  16.  
  17. if [ -d test ];
  18. then
  19.     sleep 0
  20. else
  21.     vboxmanage startvm --type=gui webs3
  22. fi;
  23.  
  24. if [ -d /mnt/webs3/garry ];
  25. then
  26.     sleep 0
  27. else
  28.     sudo mount webs3:/home/roysa /mnt/webs3
  29. fi;
  30.  
  31.  
  32.  
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement