From 04c08741143b0da14aeda5039cfd04cd9111a71e Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 3 Aug 2018 12:27:15 -0400 Subject: [PATCH] end permissions fix --- larbs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/larbs.sh b/larbs.sh index 14d37c8..634a0b1 100755 --- a/larbs.sh +++ b/larbs.sh @@ -111,7 +111,7 @@ serviceinit() { for service in $@; do newperms() { # Set special sudoers settings for install (or after). sed -i "/#LARBS/d" /etc/sudoers - echo "$@ #LARBS" >> /etc/sudoers ;} + echo -e "$@ #LARBS" >> /etc/sudoers ;} systembeepoff() { dialog --infobox "Getting rid of that retarded error beep sound..." 10 50 rmmod pcspkr @@ -199,7 +199,7 @@ systembeepoff # This line, overwriting the `newperms` command above will allow the user to run # serveral important commands, `shutdown`, `reboot`, updating, etc. without a password. -newperms "%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/packer -Syu,/usr/bin/packer -Syyu,/usr/bin/systemctl restart NetworkManager,/usr/bin/rc-service NetworkManager restart, /usr/bin/pacman -Syyu --noconfirm" +newperms "%wheel ALL=(ALL) ALL\n%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/packer -Syu,/usr/bin/packer -Syyu,/usr/bin/systemctl restart NetworkManager,/usr/bin/rc-service NetworkManager restart, /usr/bin/pacman -Syyu --noconfirm" # Last message! Install complete! finalize