]>
Commit | Line | Data |
---|---|---|
5fca8d27 | 1 | #!/bin/sh |
6cf9e770 AF |
2 | # |
3 | # IPFire Installer RC | |
4 | # | |
5 | ||
c5a5b13e MT |
6 | unattended=0 |
7 | if grep -q "installer.unattended" /proc/cmdline; then | |
8 | unattended=1 | |
9 | fi | |
10 | ||
e6f71226 MT |
11 | # Enable Unicode |
12 | echo -en '\033%G' && kbd_mode -u | |
13 | ||
14 | # Load default console font | |
66c684fa | 15 | setfont latarcyrheb-sun16 |
e6f71226 | 16 | |
5fca8d27 | 17 | # Silence the kernel |
6cf9e770 AF |
18 | echo >/proc/sys/kernel/printk "1 4 1 7" |
19 | echo -n -e "\033[9;0]" | |
20 | ||
6cf9e770 AF |
21 | echo "Starting shells on tty2 and tty3 ..." |
22 | /usr/local/bin/iowrap /dev/tty2 /bin/bash & | |
23 | /usr/local/bin/iowrap /dev/tty3 /bin/bash & | |
24 | ||
25 | echo "Loading Installer..." | |
5fca8d27 | 26 | /bin/bash --login -c "/usr/bin/installer /dev/tty2" |
39a36d7d | 27 | ret=$? |
5fca8d27 | 28 | |
39a36d7d | 29 | case "${ret}" in |
a046e8a6 | 30 | 139) |
39a36d7d MT |
31 | echo "The installer has crashed. You will be dropped to a debugging shell" |
32 | /bin/bash --login | |
33 | ;; | |
34 | esac | |
6cf9e770 | 35 | |
c5a5b13e MT |
36 | # Poweroff after an unattended installation |
37 | if [ "${unattended}" = "1" ]; then | |
38 | /shutdown poweroff | |
39 | fi | |
40 | ||
5fca8d27 MT |
41 | # Reboot the system |
42 | /shutdown reboot |