Add boot config menu

This commit is contained in:
MatMoul 2019-01-03 00:10:33 +01:00
parent f164f6025b
commit 08412e0674

View file

@ -10,7 +10,7 @@ options+=("Systemd" "")
if [ -f /usr/bin/Xorg ]; then if [ -f /usr/bin/Xorg ]; then
options+=("XOrg" "") options+=("XOrg" "")
fi fi
options+=("Grub" "") options+=("Boot" "")
defaultitem="" defaultitem=""
sel=$(whiptail --backtitle "$apptitle" --title "Config Menu :" --menu "" --default-item "$defaultitem" --cancel-button "Back" 0 0 0 \ sel=$(whiptail --backtitle "$apptitle" --title "Config Menu :" --menu "" --default-item "$defaultitem" --cancel-button "Back" 0 0 0 \
@ -28,10 +28,7 @@ case $sel in
'Sudoers') menu config/sudoers/menu;; 'Sudoers') menu config/sudoers/menu;;
'Systemd') menu config/systemd/menu;; 'Systemd') menu config/systemd/menu;;
'XOrg') menu config/xorg/menu;; 'XOrg') menu config/xorg/menu;;
'Grub') editfile /etc/default/grub 'Boot') menu config/boot/menu;;
if(confirm "Run grub-mkconfig -o /boot/grub/grub.cfg ?") then
grub-mkconfig -o /boot/grub/grub.cfg
fi;;
esac esac
exit 0 exit 0