Skip to content

Instantly share code, notes, and snippets.

@forestbaker
Last active January 14, 2016 15:56
Show Gist options
  • Save forestbaker/558b4f495336ce012d0e to your computer and use it in GitHub Desktop.
Save forestbaker/558b4f495336ce012d0e to your computer and use it in GitHub Desktop.
Resolves a warning message often seen when updating Linux: "Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported."
#!/bin/bash
if [ -f /etc/default/grub ]; then
sed -i '/GRUB_HIDDEN_TIMEOUT=/s/^/#/g' /etc/default/grub
update-grub
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment