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