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