aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2019-08-06 20:52:54 +0200
committerMichael Buesch <m@bues.ch>2019-08-06 21:25:03 +0200
commit18454588011e0513aa7c25555a63dffdf37775d3 (patch)
tree53cb3f6e6800db5c9209b2cc285ca33b09301670
parent1f1bebfb1b5ba9776af09876699261ada1f405ce (diff)
downloadawlsim-18454588011e0513aa7c25555a63dffdf37775d3.tar.xz
awlsim-18454588011e0513aa7c25555a63dffdf37775d3.zip
pilc: Add console config
Signed-off-by: Michael Buesch <m@bues.ch>
-rwxr-xr-xpilc/pilc-bootstrap.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/pilc/pilc-bootstrap.sh b/pilc/pilc-bootstrap.sh
index 713a708e..6e2339a0 100755
--- a/pilc/pilc-bootstrap.sh
+++ b/pilc/pilc-bootstrap.sh
@@ -527,6 +527,13 @@ EOF
dpkg-reconfigure -u locales ||\
die "Failed to reconfigure locales"
+ info "Configuring console..."
+ sed -i -e 's|CHARMAP=.*|CHARMAP="UTF-8"|' \
+ -e 's|FONTFACE=.*|FONTFACE=""|' \
+ -e 's|FONTSIZE=.*|FONTSIZE=""|' \
+ /etc/default/console-setup ||\
+ die "Failed to edit /etc/default/console-setup"
+
info "Creating /etc/rc.local..."
do_install -o root -g root -m 755 \
/tmp/templates/rc.local \
bues.ch cgit interface