tidy up install script

This commit is contained in:
Marty Oehme 2019-03-11 10:50:05 +01:00
parent 00642e8ee8
commit 5b2870b0a9

View file

@ -104,7 +104,6 @@ gatherpackages() {
touch $concfile
for progs in "$@"; do
([ -f "$progs" ] && cat "$progs" >> $concfile) || curl -Ls "$progs" | sed '/^#/d' >> $concfile
echo "appending" "$progs" "to" "$confile" ", sized" "$(stat -f \"%z $concfile\")"
done
}
@ -155,7 +154,7 @@ serviceinit() { for service in "$@"; do
systemctl start "$service"
done ;}
systembeepoff() { dialog --infobox "Getting rid of that retarded error beep sound..." 10 50
systembeepoff() { dialog --infobox "Getting rid of error beep sound..." 10 50
rmmod pcspkr
echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf ;}
@ -223,11 +222,6 @@ rm "/home/$name/README.md"
# Pulseaudio, if/when initially installed, often needs a restart to work immediately.
[ -f /usr/bin/pulseaudio ] && resetpulse
# Install vim `plugged` plugins.
dialog --infobox "Installing (neo)vim plugins..." 4 50
(sleep 30 && killall nvim) &
sudo -u "$name" nvim -E -c "PlugUpdate|visual|q|q" >/dev/null 2>&1
# Enable services here.
serviceinit NetworkManager cronie
@ -239,6 +233,11 @@ systembeepoff
newperms "%wheel ALL=(ALL) ALL #LARBS
%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl suspend,/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,/usr/bin/loadkeys,/usr/bin/yay,/usr/bin/pacman -Syyuw --noconfirm"
# Install vim `plugged` plugins.
dialog --infobox "Installing (neo)vim plugins..." 4 50
(sleep 30 && killall nvim) &
sudo -u "$name" nvim -E -c "PlugUpdate|visual|q|q" >/dev/null 2>&1
# Last message! Install complete!
finalize
clear
clear