From d7746ce0e1873d9e802cd0dfffc98a50a18d8f5c Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 28 Feb 2022 22:58:46 -0600 Subject: [PATCH] Fix Plymouth syntax error Also remove old sudoers sed commands and add some echos --- scripts/3-post-setup.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/3-post-setup.sh b/scripts/3-post-setup.sh index 34c67a0..725d83e 100755 --- a/scripts/3-post-setup.sh +++ b/scripts/3-post-setup.sh @@ -122,15 +122,15 @@ fi echo -ne " ------------------------------------------------------------------------- - Enabling (and Theming) Plymouth Boot Splash + Enabling (and Theming) Plymouth Boot Splash ------------------------------------------------------------------------- " PLYMOUTH_THEMES_DIR="$HOME/ArchTitus/configs/usr/share/plymouth/themes" PLYMOUTH_THEME="arch-glow" # can grab from config later if we allow selection -mkdir -p /usr/share/plymouth/themes +mkdir -p "/usr/share/plymouth/themes" echo 'Installing Plymouth theme...' -cp -rf ${PLYMOUTH_THEMES_DIR}/${PLYMOUTH_THEME} /usr/share/plymouth/themes -if [[ $FS == "luks"]]; then +cp -rf "${PLYMOUTH_THEMES_DIR}/${PLYMOUTH_THEME}" "/usr/share/plymouth/themes" +if [[ "${FS}" == "luks" ]]; then sed -i 's/HOOKS=(base udev*/& plymouth/' /etc/mkinitcpio.conf # add plymouth after base udev sed -i 's/HOOKS=(base udev \(.*block\) /&plymouth-/' /etc/mkinitcpio.conf # create plymouth-encrypt after block hook else @@ -144,13 +144,14 @@ echo -ne " Cleaning ------------------------------------------------------------------------- " + +echo "Cleaning up sudoers file" # Remove no password sudo rights -sed -i 's/^%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers sed -i 's/^%wheel ALL=(ALL:ALL) NOPASSWD: ALL/# %wheel ALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers # Add sudo rights -sed -i 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers +echo "Cleaning up installation files" rm -r $HOME/ArchTitus rm -r /home/$USERNAME/ArchTitus