automate/010_grub-commandline_consol...

7 lines
230 B
Bash

#!/usr/bin/env bash
# the screen will blank after 3 minutes of inactivity on the TTY console.
NEWARG="consoleblank=3"
sudo sed -i -E "s|^(GRUB_CMDLINE_LINUX_DEFAULT=\"[^\"]*)\"|\1 ${NEWARG}\"|" /etc/default/grub
sudo update_grub