]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/paks/linux-pae/install.sh
Merge remote-tracking branch 'stevee/axel-log-fix' into axel-fixperms
[people/teissler/ipfire-2.x.git] / src / paks / linux-pae / install.sh
index 60f8bbb42e31f3e949027e792ae79885ea12a186..ab740512fea6ad97e8811fa89c408686a82d9345 100644 (file)
@@ -17,7 +17,7 @@
 # along with IPFire; if not, write to the Free Software                    #
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
 #                                                                          #
-# Copyright (C) 2007-2011 IPFire-Team <info@ipfire.org>.                   #
+# Copyright (C) 2007-2013 IPFire-Team <info@ipfire.org>.                   #
 #                                                                          #
 ############################################################################
 #
@@ -48,13 +48,13 @@ let ENTRY=$_+1
 if [ "$(grep "^serial" /boot/grub/grub.conf)" == "" ]; then
        console=""
 else
-       console=" console=ttyS0,38400n8"
+       console=" console=ttyS0,115200n8"
 fi
 
 #
 # backup grub.conf
 #
-cp /boot/grub/grub.conf /boot/grub/grub-backup-$KVER-pae.conf
+cp /boot/grub/grub.conf /boot/grub/grub-backup-$KVER-pae_install.conf
 #
 # Add new Entry to grub.conf
 #
@@ -71,3 +71,10 @@ echo "  savedefault $ENTRY" >> /boot/grub/grub.conf
 # Create new module depency
 #
 depmod -a $KVER-ipfire-pae
+
+# Default pae and request a reboot if pae is supported
+if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then
+       grub-set-default $ENTRY
+       touch /var/run/need_reboot
+fi
+sync && sync
\ No newline at end of file