From fa2ba07bf8c42d841dc6201e05cd695f91f661df Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Mon, 23 Mar 2020 22:34:46 +0100 Subject: [PATCH] Update NAS mount script Config is not added to /etc/fstab --- dotfiles/scripts.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/scripts.org b/dotfiles/scripts.org index 259030d..6b3eaab 100644 --- a/dotfiles/scripts.org +++ b/dotfiles/scripts.org @@ -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'