update to mount.sh
This commit is contained in:
@@ -21,10 +21,13 @@ mount_cifs() {
|
||||
}
|
||||
|
||||
# Mount FRITZ.NAS (from fstab line 1)
|
||||
if ping -c 1 -W 1 "$HOST" >/dev/null 2>&1; then
|
||||
mount_cifs "//192.168.1.1/FRITZ.NAS" \
|
||||
"/home/honney/mount/fritzNAS" \
|
||||
"credentials=/home/honney/.cred/samba_credentials,uid=1000,gid=1000,vers=3.0,cache=none,nounix,noserverino,file_mode=0755,dir_mode=0755"
|
||||
fi
|
||||
|
||||
if ping -c 1 -W 1 "100.64.0.3" >/dev/null 2>&1; then
|
||||
# Mount Data (from fstab line 2)
|
||||
mount_cifs "//100.64.0.3/Data" \
|
||||
"/home/honney/mount/Data" \
|
||||
@@ -44,3 +47,4 @@ mount_cifs "//100.64.0.3/Ripping" \
|
||||
mount_cifs "//100.64.0.3/Apps" \
|
||||
"/home/honney/mount/Apps" \
|
||||
"credentials=/home/honney/.cred/trueNAS_credentials,vers=3.1.1,iocharset=utf8,rw,uid=1000,gid=1000,nounix,noperm,file_mode=0660,dir_mode=0770,hard,intr,cache=loose"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user