From 08412e06747890a131d78e5150cc5dcf44aab127 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Thu, 3 Jan 2019 00:10:33 +0100 Subject: [PATCH] Add boot config menu --- config/menu | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/config/menu b/config/menu index 8b5922a..96415bb 100644 --- a/config/menu +++ b/config/menu @@ -10,7 +10,7 @@ options+=("Systemd" "") if [ -f /usr/bin/Xorg ]; then options+=("XOrg" "") fi -options+=("Grub" "") +options+=("Boot" "") defaultitem="" 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;; 'Systemd') menu config/systemd/menu;; 'XOrg') menu config/xorg/menu;; - 'Grub') editfile /etc/default/grub - if(confirm "Run grub-mkconfig -o /boot/grub/grub.cfg ?") then - grub-mkconfig -o /boot/grub/grub.cfg - fi;; + 'Boot') menu config/boot/menu;; esac exit 0