Advertisement
Guest User

Untitled

a guest
Mar 31st, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #!/bin/bash
  2. stweb="/mnt/stweb"
  3. if ! mount|grep $stweb; then
  4. sudo mkdir -p $stweb
  5. sudo mount.cifs //<server IP>/folder $stweb -o uid=1000,gid=1000,user=<myuser>,password=<mypassword>,domain=<mydomain>
  6. fi
  7.  
  8. #!/bin/bash
  9. sudo umount -a -t cifs -l
  10.  
  11. $ lsb_release -a
  12. No LSB modules are available.
  13. Distributor ID: Ubuntu
  14. Description: Ubuntu 15.10
  15. Release: 15.10
  16. Codename: wily
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement