Update NAS mount script
Config is not added to /etc/fstab
This commit is contained in:
parent
570420e81d
commit
fa2ba07bf8
@ -137,13 +137,13 @@ Finally, lock the screen using =i3lock=.
|
|||||||
|
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
if [ $1 == "mount" ]; then
|
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'
|
dunstify --replace=58249 'NAS' 'Successfully mounted'
|
||||||
else
|
else
|
||||||
dunstify --replace=58249 'NAS' 'Error while mounted'
|
dunstify --replace=58249 'NAS' 'Error while mounted'
|
||||||
fi
|
fi
|
||||||
elif [ $1 == "umount" ]; then
|
elif [ $1 == "umount" ]; then
|
||||||
if sudo -A umount /mnt/NAS/; then
|
if umount /home/thomas/mnt/NAS/; then
|
||||||
dunstify --replace=58249 'NAS' 'Successfully unmounted'
|
dunstify --replace=58249 'NAS' 'Successfully unmounted'
|
||||||
else
|
else
|
||||||
dunstify --replace=58249 'NAS' 'Error while unmounted'
|
dunstify --replace=58249 'NAS' 'Error while unmounted'
|
||||||
|
Loading…
Reference in New Issue
Block a user