config backup

This commit is contained in:
2020-12-19 22:29:42 +01:00
parent fa8016839d
commit 8013140d20
612 changed files with 33 additions and 116473 deletions

10
tools/nas_connect.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/zsh
if [[ -z $1 || -z $2 || -z $3 || -z $4 || -z $5 ]]
then
echo "Not enought arguments found"
echo "Input IP, shaqre, username, password and mountname"
else
sudo mkdir -p /mnt/$5
sudo chown -c $USER /mnt/$5
sudo mount -t cifs //$1/$2 /mnt/$5 -o username=$3,password=$4,iocharset=utf8,uid=$EUID,vers=2.0
fi