From f350390c3f9eedd079057f25bae891d552dec292 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 23 Dec 2023 18:21:31 +0100 Subject: [PATCH] mount condition --- .config/fish/config_wsl.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/fish/config_wsl.fish b/.config/fish/config_wsl.fish index b859c82..8942888 100644 --- a/.config/fish/config_wsl.fish +++ b/.config/fish/config_wsl.fish @@ -1,3 +1,5 @@ # NAS -sudo mount -t drvfs 'Y:' /mnt/y -o metadata,uid=1000,gid=1000 2>/dev/null & +if ping -c 1 192.168.1.200 + sudo mount -t drvfs 'Y:' /mnt/y -o metadata,uid=1000,gid=1000 2>/dev/null & +end