/ adding mounting of fam dir

plus nas alias cleanup
This commit is contained in:
committer@tuxwarrior
2025-05-10 08:23:07 -05:00
parent dc3d2cb757
commit b39ef81678

View File

@@ -298,18 +298,21 @@ ascii() {
# --- # ---
alias nas-mount="sudo systemctl start mnt-nas.mount" alias nas-mount="sudo systemctl start mnt-nas.mount"
alias nas-unmount="sudo systemctl stop mnt-nas.mount" alias nas-unmount="sudo systemctl stop mnt-nas.mount"
alias nas-mount-2="sudo mount -v -t cifs //192.168.1.222/fro /mnt/nas -o credentials=/home/poq/syncDir/secrets/misc/lillesorteboks.txt" #alias nas-mount-2="sudo mount -v -t cifs //192.168.1.222/fro /mnt/nas -o credentials=/home/poq/syncDir/secrets/misc/lillesorteboks.txt"
alias nas-unmount-2="sudo umount /mnt/nas" #alias nas-unmount-2="sudo umount /mnt/nas"
nas() { nas() {
if [[ -n $1 ]] ; then if [[ -n $1 ]] ; then
if [[ $1 == "umount" ]] || [[ $1 == "unmount" ]] ; then if [[ $1 == "umount" ]] || [[ $1 == "unmount" ]] ; then
echo "umount /mnt/nas" echo "umount /mnt/nas & /mnt/nas-fam"
sudo umount /mnt/nas sudo umount /mnt/nas
sudo umount /mnt/nas-fam
elif [[ $1 == "mount" ]] && [[ -n $2 ]]; then elif [[ $1 == "mount" ]] && [[ -n $2 ]]; then
echo "mount /mnt/nas" echo "mount /mnt/nas & /mnt/nas-fam"
sudo mount -t cifs -o credentials=/home/poq/syncDir/secrets/misc/lillesorteboks.txt,iocharset=utf8,noperm //$2/fro /mnt/nas sudo mount -t cifs -o credentials=/home/poq/syncDir/secrets/misc/lillesorteboks.txt,iocharset=utf8,noperm //$2/fro /mnt/nas
sudo mount -t cifs -o credentials=/home/poq/syncDir/secrets/misc/lillesorteboks.txt,iocharset=utf8,noperm //$2/fam /mnt/nas-fam
tree -L 2 /mnt/nas tree -L 2 /mnt/nas
tree -L 2 /mnt/nas-fam
else else
echo "missing the ip when doing a mount? or, just trying a weird command? try: 'nas {mount,umount} {ip?}'" echo "missing the ip when doing a mount? or, just trying a weird command? try: 'nas {mount,umount} {ip?}'"
fi fi