]> git.ipfire.org Git - ipfire-2.x.git/blame_incremental - src/installer/dracut-module/run-installer.sh
installer: Initialize console font
[ipfire-2.x.git] / src / installer / dracut-module / run-installer.sh
... / ...
CommitLineData
1#!/bin/sh
2#
3# IPFire Installer RC
4#
5
6# Enable Unicode
7echo -en '\033%G' && kbd_mode -u
8
9# Load default console font
10setfont LatArCyrHeb-16
11
12# Silence the kernel
13echo >/proc/sys/kernel/printk "1 4 1 7"
14echo -n -e "\033[9;0]"
15
16echo "Starting shells on tty2 and tty3 ..."
17/usr/local/bin/iowrap /dev/tty2 /bin/bash &
18/usr/local/bin/iowrap /dev/tty3 /bin/bash &
19
20echo "Loading Installer..."
21/bin/bash --login -c "/usr/bin/installer /dev/tty2"
22ret=$?
23
24case "${ret}" in
25 0)
26 # The installer has finished without a problem.
27 ;;
28 *)
29 echo "The installer has crashed. You will be dropped to a debugging shell"
30 /bin/bash --login
31 ;;
32esac
33
34# Reboot the system
35/shutdown reboot