Desktop scripts
This commit is contained in:
parent
6079f98037
commit
639e4dbf2d
19 changed files with 321 additions and 0 deletions
27
scripts/connect-nfs
Executable file
27
scripts/connect-nfs
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
# Connects remote nfs filesystems
|
||||
if [ $# -eq 2 ]; then
|
||||
echo "Mounting $1"
|
||||
sudo mount -t nfs -o vers=4 10.8.0.1:/mnt/$1 /mnt/nfs/$1
|
||||
echo "Mounting $2"
|
||||
sudo mount -t nfs -o vers=4 10.8.0.1:/mnt/$2 /mnt/nfs/$2
|
||||
elif [ $# -gt 2 ]; then
|
||||
echo "Mounting $1"
|
||||
sudo mount -t nfs -o vers=4 10.8.0.1:/mnt/$1 /mnt/nfs/$1
|
||||
echo "Mounting $2"
|
||||
sudo mount -t nfs -o vers=4 10.8.0.1:/mnt/$2 /mnt/nfs/$2
|
||||
echo "Mounting $3"
|
||||
sudo mount -t nfs -o vers=4 10.8.0.1:/mnt/$3 /mnt/nfs/$3
|
||||
elif [ $# -eq 1 ]; then
|
||||
echo "Mounting $1"
|
||||
sudo mount -t nfs -o vers=4 10.8.0.1:/mnt/$1 /mnt/nfs/$1
|
||||
fi
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
sudo mount -t nfs -o vers=4 10.8.0.1:/mnt/Music /mnt/nfs/Music
|
||||
sudo mount -t nfs -o vers=4 10.8.0.1:/mnt/Downloads /mnt/nfs/Downloads
|
||||
sudo mount -t nfs -o vers=4 10.8.0.1:/mnt/Video /mnt/nfs/Video
|
||||
echo "Mounted Music, Downloads and Video"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue