Files
GUI/scripts/mountNfs.sh

18 lines
299 B
Bash
Raw Normal View History

2025-08-05 18:14:57 +08:00
#!/bin/bash
# NFS Server 和 目录
REMOTE_HOST=192.168.124.1
REMOTE_PATH=/home/data/Storage/Raw
MOUNT_POINT=/mnt/nfs
# 尝试挂载
# 已挂载则退出
if mountpoint -q "$MOUNT_POINT"; then
echo "Already mounted."
exit 0
fi
mount -t nfs "${REMOTE_HOST}:${REMOTE_PATH}" "$MOUNT_POINT"