12345678910111213141516171819202122 |
- #! /bin/sh
- source ~/.config/secretsrc
- SUDOCMD=doas
- IPADDR=192.168.88.4
- MNT_OPT="noatime,nolock,defaults,rsize=8192,wsize=8192,vers=3"
- # MNT_OPT="hard,nofail,noatime,nodiratime,timeo=10,retrans=1,retry=1,nolock,nfsvers=3,proto=udp,_netdev"
- if [ "$1" = "hard" ]
- then
- $SUDOCMD umount -lf /mnt/curl
- $SUDOCMD umount -lf /mnt/volb
- $SUDOCMD mount.nfs4 $IPADDR:/shares/volb /mnt/volb -v -o $MNT_OPT
- fi
- $SUDOCMD killall curlftpfs
- $SUDOCMD curlftpfs -o nonempty,allow_other $SECRET_FTP_AUTH@$IPADDR /mnt/curl
- exit 0
|