Delay SMB automount

Post Reply
zemerdon
Site Admin
Posts: 255
Joined: Mon Jan 23, 2023 8:13 pm

Delay SMB automount

Post 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
Post Reply