2014-11-28 17:02:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#############################################################
|
2014-12-18 17:38:32 +00:00
|
|
|
# T-Pot Community Edition - disable splash boot #
|
|
|
|
# and consoleblank permanently #
|
|
|
|
# Ubuntu server 14.04.1, x64 #
|
2014-11-28 17:02:20 +00:00
|
|
|
# #
|
2015-01-27 16:46:52 +00:00
|
|
|
# v0.10 by mo, DTAG, 2015-01-20 #
|
2014-11-28 17:02:20 +00:00
|
|
|
#############################################################
|
|
|
|
|
2014-12-18 17:38:32 +00:00
|
|
|
# Let's replace "quiet splash" options and update grub
|
2015-01-21 16:51:32 +00:00
|
|
|
sed -i 's#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"#GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=0"#' /etc/default/grub
|
|
|
|
sed -i 's#\#GRUB_GFXMODE=640x480#GRUB_GFXMODE=800x600#' /etc/default/grub
|
2014-11-28 17:02:20 +00:00
|
|
|
update-grub
|
2015-01-21 16:51:32 +00:00
|
|
|
sed -i 's#FONTFACE="VGA"#FONTFACE="Terminus"#' /etc/default/console-setup
|
|
|
|
sed -i 's#FONTSIZE="16"#FONTSIZE="12x6"#' /etc/default/console-setup
|
2014-11-28 17:02:20 +00:00
|
|
|
|
|
|
|
# Let's move the install script to rc.local and reboot
|
|
|
|
mv /root/install.sh /etc/rc.local && sleep 2 && reboot
|