mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-02-22 17:09:14 +00:00
fixed some stuff that's not supposed to be here
Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
This commit is contained in:
parent
8e2850c3a1
commit
96876d673a
|
@ -30,9 +30,9 @@ installKernel() {
|
|||
if [ -f /etc/default/grub ]; then
|
||||
printf "%b\n" "${CYAN}Updating GRUB...${RC}"
|
||||
if ! grep -q '^UPDATEDEFAULT=' /etc/default/grub; then
|
||||
echo 'UPDATEDEFAULT=yes' | sudo tee -a /etc/default/grub
|
||||
echo 'UPDATEDEFAULT=yes' | "$ESCALATION_TOOL" tee -a /etc/default/grub
|
||||
else
|
||||
sudo sed -i 's/^UPDATEDEFAULT=.*/UPDATEDEFAULT=yes/' /etc/default/grub
|
||||
"$ESCALATION_TOOL" sed -i 's/^UPDATEDEFAULT=.*/UPDATEDEFAULT=yes/' /etc/default/grub
|
||||
fi
|
||||
if [ -f /boot/grub/grub.cfg ]; then
|
||||
"$ESCALATION_TOOL" grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
|
Loading…
Reference in New Issue
Block a user