we have not enough space to left older versions without cleanup at update.
# 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>. #
# #
############################################################################
#
#
# 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
#
# along with IPFire; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
# #
-# Copyright (C) 2010 IPFire-Team <info@ipfire.org>. #
+# Copyright (C) 2007-2013 IPFire-Team <info@ipfire.org>. #
# #
############################################################################
#
. /opt/pakfire/lib/functions.sh
remove_files
-#mv -f /boot/grub/grub-backup-2.6.32.*-pae.conf /boot/grub/grub.conf
+rm -rf /boot/ipfirerd-*-pae.img
+rm -rf /lib/modules/*-ipfire-pae
+cp /boot/grub/grub.conf /boot/grub/grub-backup-pae_uninstall.conf
+sed -i "/title IPFire (PAE-Kernel)/,+3d" /boot/grub/grub.conf
+grub-set-default 1
+sync && sync
# 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>. #
# #
############################################################################
#
. /opt/pakfire/lib/functions.sh
-#Don't remove old pae kernel at update
-#./uninstall.sh
+./uninstall.sh
./install.sh