Skip to content

Instantly share code, notes, and snippets.

@mahdavipanah
Last active April 23, 2016 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahdavipanah/67e92d3c5a27cca2360ecd1eb3c0ade9 to your computer and use it in GitHub Desktop.
Save mahdavipanah/67e92d3c5a27cca2360ecd1eb3c0ade9 to your computer and use it in GitHub Desktop.
Ubuntu After Installation Todos
#! /bin/bash
# Fix Ubuntu Plymouth Boot Splash
# if entry exists for $vt_handoff use sed to search and replace
# write to tmp file - move to original
checkVT=$(grep -c "\$vt_handoff" /boot/grub/grub.cfg)
if [ ! "$checkVT" -eq "0" ]
then
echo "> Found vt_handoff removing ..."
sudo sed 's/$vt_handoff//g' /boot/grub/grub.cfg > /tmp/.grub.cfg
sudo mv /boot/grub/grub.cfg /boot/grub/grub.cfg.backup
sudo mv /tmp/.grub.cfg /boot/grub/grub.cfg
fi
echo "> Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment