]>
Commit | Line | Data |
---|---|---|
6cf9e770 | 1 | #!/bin/bash |
e5713a7e AF |
2 | |
3 | # Exit if firstsetup was already done... | |
4 | if [ -e /var/ipfire/main/firstsetup_ok ]; then | |
5 | exit 0; | |
6 | fi | |
7 | ||
c4172fad AF |
8 | # disable consoles if tty are not present |
9 | openvt -f -w -- /bin/sh -c echo > /dev/null 2>&1 | |
10 | if [ ! "${?}" == "0" ]; then | |
6b566244 AF |
11 | # Disable console on tty2-6 |
12 | sed -i -e "s|2:2345:respawn:|#2:2345:respawn:|g" /etc/inittab | |
13 | sed -i -e "s|3:2345:respawn:|#3:2345:respawn:|g" /etc/inittab | |
14 | sed -i -e "s|4:2345:respawn:|#4:2345:respawn:|g" etc/inittab | |
15 | sed -i -e "s|5:2345:respawn:|#5:2345:respawn:|g" /etc/inittab | |
16 | sed -i -e "s|6:2345:respawn:|#6:2345:respawn:|g" /etc/inittab | |
17 | fi | |
18 | ||
e0b28afe AF |
19 | # reload inittab |
20 | /sbin/init q | |
21 | # | |
ceb5098e | 22 | /etc/init.d/sysklogd start |
ef7d03bb | 23 | export LANG=en_US.utf8 |
687fc4a9 | 24 | /usr/sbin/setup /dev/tty2 INSTALL |
e238e4c2 AF |
25 | if [ "${?}" == "1" ]; then |
26 | echo Setup not finished. Rebooting ... | |
27 | reboot -f | |
28 | fi | |
e5713a7e AF |
29 | |
30 | # plan install pae kernel at next pakfire update if pae is supported | |
e5713a7e | 31 | if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then |
7676ceba AF |
32 | if [ ! -e /opt/pakfire/db/installed/meta-linux-pae ]; then |
33 | echo "Name: linux-pae" > /opt/pakfire/db/installed/meta-linux-pae | |
34 | echo "ProgVersion: 0" >> /opt/pakfire/db/installed/meta-linux-pae | |
35 | echo "Release: 0" >> /opt/pakfire/db/installed/meta-linux-pae | |
1a78fe5e | 36 | fi |
e5713a7e AF |
37 | fi |
38 | ||
ceb5098e | 39 | /etc/init.d/sysklogd stop |
e5713a7e | 40 | touch /var/ipfire/main/firstsetup_ok |