]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
kernel: fix pae kernel uninstall.
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 4 Jan 2013 22:55:08 +0000 (23:55 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 4 Jan 2013 22:55:08 +0000 (23:55 +0100)
we have not enough space to left older versions without cleanup at update.

src/paks/linux-pae/install.sh
src/paks/linux-pae/uninstall.sh
src/paks/linux-pae/update.sh

index 59e17bfecf404cfee50a37063cde7be105a16d3c..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>.                   #
 #                                                                          #
 ############################################################################
 #
@@ -54,7 +54,7 @@ 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
 #
index 959fdb1a7e2c818d5eb84cf52382f64294138b50..69c7e565fa83c29fca2aec5b588d8206550ae876 100644 (file)
 # 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
index 2878dfb4fbbecc4399f0186d5e4bc8d5bcf28088..1ad1831a73fbcbb97dbd836aa648a4be87f25510 100644 (file)
 # 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