Comment 4 for bug 42376

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 42376] Re: [Bug 42376] Re: hibernate should hide grub menu

this should easily be fixed throught the scripts in /etc/acpi/resume.d
and suspend.d if they're called also when using gnome-power-manager...

suspend script:
cp /boot/grub/menu.lst /boot/grub/menu.lst.bak
cat /boot/grub/menu.lst | sed -e 's/^#hiddenmenu/hiddenmenu/' >
/boot/grub/menu.lst

resume script
mv /boot/grub/menu.lst.bak /boot/grub/menu.lst

but this won't work if someone edits the line containing #hiddenmenu