From e5713a7e2109cd38a64a2d752495a735a8ac4453 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 25 Nov 2012 12:48:00 +0100 Subject: [PATCH] firstsetup: initiate linux-pae installation. --- src/initscripts/init.d/firstsetup | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/initscripts/init.d/firstsetup b/src/initscripts/init.d/firstsetup index b658cfa027..0d3f448c9e 100644 --- a/src/initscripts/init.d/firstsetup +++ b/src/initscripts/init.d/firstsetup @@ -1,4 +1,10 @@ #!/bin/bash + +# Exit if firstsetup was already done... +if [ -e /var/ipfire/main/firstsetup_ok ]; then + exit 0; +fi + # Edit the serial console entry at /etc/inittab matching to console parameter. ser_console() { while test x"$1" != x @@ -27,10 +33,19 @@ if [ "${?}" == "1" ]; then echo Setup not finished. Rebooting ... reboot -f fi + +# plan install pae kernel at next pakfire update if pae is supported +rm -rf /opt/pakfire/db/*/meta-linux-pae +if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then + echo "Name: linux-pae" > /opt/pakfire/db/installed/meta-linux-pae + echo "ProgVersion: 0" >> /opt/pakfire/db/installed/meta-linux-pae + echo "Release: 0" >> /opt/pakfire/db/installed/meta-linux-pae +fi + echo Restarting udev... killall udevd /sbin/udevd --daemon /sbin/udevadm trigger /sbin/udevadm settle /etc/init.d/sysklogd stop -rm -f /etc/rc.d/rcsysinit.d/S75firstsetup +touch /var/ipfire/main/firstsetup_ok -- 2.39.5