This commit is contained in:
Mylloon 2024-04-15 16:00:05 +02:00
parent dbb260eb3e
commit 2d78039c3b
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,10 @@
# NAS
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 &
for drive in 'Y' 'Z'
sudo mount -t drvfs $drive: /mnt/$drive \
-o metadata,uid=$(id -u),gid=$(id -g) 2> /dev/null &
end
end
# Sometimes the screen is getting lost

1
wsl.sh
View file

@ -73,6 +73,7 @@ function main {
# === Shared folders ==
sudo mkdir -p /mnt/y
sudo mkdir -p /mnt/z
# === Fish ==