Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if grep -qs '//192.168.1.4/Santral_Ses_Kaydi' /proc/mounts; then
- echo "disk mount edilmis. islem yapilmadi."
- else
- STAMP=`date '+%Y-%m-%d %H:%M:%S'`
- echo "disk mount edilmemis."
- mount -o 'username=ses,password=ses' //192.168.1.4/Santral_Ses_Kaydi /mnt/monitor
- echo "$STAMP: disk mount edildi." >> /var/log/mounted.log
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement