Page 1 of 1

Delay SMB automount

Posted: Fri Sep 15, 2023 3:27 pm
by zemerdon
crontab -e

@reboot sleep 15 && /home/zemerdon/automount.sh

automount.sh (nvr)

Code: Select all

#!/bin/bash
mount.cifs //192.168.1.10/writeable /media/network/writeable -o credentials=/home/zemerdon/cifs_cred2,uid=33,gid=33,file_mode=0755,dirmode=0755
mount.cifs //192.168.1.10/zm_monitor /media/monitor -o credentials=/home/zemerdon/cifs_cred2,uid=33,gid=33,file_mode=0755,dirmode=0755
mount.cifs //192.168.1.10/zm_archive /media/archive -o credentials=/home/zemerdon/cifs_cred2,uid=33,gid=33,file_mode=0755,dirmode=0755
automount.sh (vpn nvr)

Code: Select all

#!/bin/bash
mount.cifs //192.168.1.11/vpnzm /media/vpnzm    -o credentials=/home/jane/cifs_cred,vers=3.0,uid=33,gid=33,rw,mfsymlinks       0       0