Connecting to NAS

This commit is contained in:
2019-07-21 16:30:30 -04:00
parent 4c031c7dec
commit 34cea0c7c8
4 changed files with 15 additions and 2 deletions

10
scripts/connect-nas.sh Normal file
View 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