fix mounting

This commit is contained in:
Mylloon 2024-04-15 16:04:27 +02:00
parent 2d78039c3b
commit e3b13536bc
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,10 +1,9 @@
# NAS # NAS
if timeout 0.2 ping -c1 192.168.1.200 > /dev/null if timeout 0.2 ping -c1 192.168.1.200 > /dev/null
for drive in 'Y' 'Z' set -l options metadata,uid=$(id -u),gid=$(id -g)
sudo mount -t drvfs $drive: /mnt/$drive \ sudo mount -t drvfs "Y:" /mnt/y -o $(options) 2> /dev/null &
-o metadata,uid=$(id -u),gid=$(id -g) 2> /dev/null & sudo mount -t drvfs "Z:" /mnt/z -o $(options) 2> /dev/null &
end
end end
# Sometimes the screen is getting lost # Sometimes the screen is getting lost