3 # Exit if firstsetup was already done...
4 if [ -e /var
/ipfire
/main
/firstsetup_ok
]; then
8 # disable consoles if tty are not present
9 openvt
-f -w -- /bin
/sh
-c echo > /dev
/null
2>&1
10 if [ ! "${?}" == "0" ]; then
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
22 /etc
/init.d
/sysklogd start
23 export LANG
=en_US.utf8
24 /usr
/sbin
/setup
/dev
/tty2 INSTALL
25 if [ "${?}" == "1" ]; then
26 echo Setup not finished. Rebooting ...
30 # plan install pae kernel at next pakfire update if pae is supported
31 if [ ! "$(grep "^flags.
* pae
" /proc/cpuinfo)" == "" ]; then
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
39 /etc
/init.d
/sysklogd stop
40 touch /var
/ipfire
/main
/firstsetup_ok