Script for choose between kexec-tools (fast) & normal reboot

Archived topics about LMDE 1 and LMDE 2
Locked
linmint777

Script for choose between kexec-tools (fast) & normal reboot

Post by linmint777 »

hi, first of all sorry for my bad English.
I bring a solution to the problem caused by the kexec-tools, no need to remove it, use only the script that I offer you to choose between faster with kexec reboot or restart normally (with bios and grub).

1 .- download the file and extract the content (a folder called kexec switch)

2 .- Within the folder are 2 scripts, one in Spanish and in English.

3 .- Select the correct language script and copy it where you like.

4 .- Give execution permission:

Code: Select all

sudo chmod + x filename.sh
5 .- create a launcher for the script or copy it to your desktop.

6 .- Now we will edit the sudoers file
Open a terminal & run:

Code: Select all

EDITOR=nano
sudo visudo
Scroll to bottom of this file and add two lines:

Code: Select all

ALL ALL=NOPASSWD:/sbin/shutdown
ALL ALL=NOPASSWD:/sbin/coldreboot
save the file and exit.

7.- run the script and enjoy !!!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mads

Re: Script for choose between kexec-tools (fast) & normal re

Post by mads »

Thanks, but I use to disable/enable it by running "sudo dpkg-reconfigure kexec-tools".
Answer 'No' to deactivate or 'Yes' to activate when asked "Should kexec-tools handle reboots?
linmint777

Re: Script for choose between kexec-tools (fast) & normal re

Post by linmint777 »

Thanks, but I use to disable/enable it by running "sudo dpkg-reconfigure kexec-tools".
Answer 'No' to deactivate or 'Yes' to activate when asked "Should kexec-tools handle reboots?
yes, another way is to edit the file /etc/default/kexec "LOAD_KEXEC=TRUE" change to FALSE and run /etc/init.d/kexec start.
but, both ways involves opening the terminal (manually), with the script with 2 clicks automatically restart in the form you need.
Locked

Return to “LMDE Archive”