Update NAS mount script

Config is not added to /etc/fstab
This commit is contained in:
Thomas Dehaeze 2020-03-23 22:34:46 +01:00
parent 570420e81d
commit fa2ba07bf8

View File

@ -137,13 +137,13 @@ Finally, lock the screen using =i3lock=.
#+begin_src bash
if [ $1 == "mount" ]; then
if sudo -A mount 192.168.1.2:/volume1/Downloads/ /mnt/NAS/; then
if mount /home/thomas/mnt/NAS/; then
dunstify --replace=58249 'NAS' 'Successfully mounted'
else
dunstify --replace=58249 'NAS' 'Error while mounted'
fi
elif [ $1 == "umount" ]; then
if sudo -A umount /mnt/NAS/; then
if umount /home/thomas/mnt/NAS/; then
dunstify --replace=58249 'NAS' 'Successfully unmounted'
else
dunstify --replace=58249 'NAS' 'Error while unmounted'