/ nas()
complete, and working?
This commit is contained in:
@@ -155,13 +155,19 @@ alias nas-unmount-2="sudo umount /mnt/nas"
|
|||||||
|
|
||||||
nas() {
|
nas() {
|
||||||
|
|
||||||
if [ $1 == "mount" ] ; then
|
if [ -f $1 ] || [ -f $2 ] ; then
|
||||||
echo "mount"
|
|
||||||
elif [ $1 == "umount" ] || [ $1 == "unmount" ] ; then
|
if [ $1 == "mount" ] ; then
|
||||||
echo "umount"
|
echo "mount /mnt/nas"
|
||||||
else
|
sudo mount -t cifs -o credentials=/home/poq/syncDir/secrets/misc/lillesorteboks.txt,iocharset=utf8,noperm //$2/fro /mnt/nas
|
||||||
echo "unknown mount command"
|
elif [ $1 == "umount" ] || [ $1 == "unmount" ] ; then
|
||||||
fi
|
echo "umount /mnt/nas"
|
||||||
|
sudo umount /mnt/nas
|
||||||
|
else
|
||||||
|
echo "unknown mount command"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user