add timeout

This commit is contained in:
Mylloon 2023-12-23 18:55:36 +01:00
parent 9d9925fee2
commit 997162b5c1
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,5 +1,5 @@
# NAS # NAS
if ping -c1 192.168.1.200 &>/dev/null if timeout 0.2 ping -c1 192.168.1.200 &>/dev/null
sudo mount -t drvfs 'Y:' /mnt/y -o metadata,uid=1000,gid=1000 2>/dev/null & sudo mount -t drvfs 'Y:' /mnt/y -o metadata,uid=1000,gid=1000 2>/dev/null &
end end