Guest User

Untitled

a guest
Aug 20th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. export ADFOLDER="//SERVER/FOLDER"
  2.  
  3. if grep -qs '/mnt/folderwin' /proc/mounts; then
  4. echo "It's mounted.";
  5. else
  6. echo "It's not mounted.";
  7. mkdir -p /mnt/folderwin
  8. mount -t cifs -o "username=$ADUSER,password=$ADPASS,domain=$ADDOMAIN" $ADFOLDER /mnt/folderwin
  9. fi
Add Comment
Please, Sign In to add comment