mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-06-30 17:22:02 +00:00
Connecting to NAS
This commit is contained in:
10
scripts/connect-nas.sh
Normal file
10
scripts/connect-nas.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Load user settings from config file.
|
||||
. ~/.config/settings.conf
|
||||
|
||||
if nc -z $nasip 80 2>/dev/null; then
|
||||
mount /mnt/share/nas
|
||||
else
|
||||
echo "$nasip is unreachable"
|
||||
fi
|
Reference in New Issue
Block a user