Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mount
- //warren@10.0.15.2/Shared%20Network%20Volume
- #!/bin/bash
- if [ ! -d "/Volumes/Shared Network Volume" ]; then
- mkdir "/Volumes/Shared Network Volume"
- mount -t afp afp://LOGIN:PASSWORD@IP_ADDRESS/VOLUMENAME /Volumes/Shared Network Volume
- else
- echo "Already mounted"
- fi
- chmod 755 remount.sh
- sudo ./remount.sh
- sudo crontab -e
- */15 * * * * /Users/warren/remount.sh >> /Users/warren/remount.log 2>&1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement