]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/paks/linux-pae/uninstall.sh
Merge remote-tracking branch 'mfischer/curl' into next
[ipfire-2.x.git] / src / paks / linux-pae / uninstall.sh
index 959fdb1a7e2c818d5eb84cf52382f64294138b50..03a4b6112040d4652f1a36b7f67dafb88f91a61c 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-2014 IPFire-Team <info@ipfire.org>.                   #
 #                                                                          #
 ############################################################################
 #
 . /opt/pakfire/lib/functions.sh
+if [ -f /boot/grub/grub.conf ]; then
+       echo "Error! Connot remove linux-pae because we are on XEN."
+       exit 1
+fi
 remove_files
-#mv -f /boot/grub/grub-backup-2.6.32.*-pae.conf /boot/grub/grub.conf
+rm -rf /boot/initramfs-*-pae.img
+rm -rf /boot/vmlinuz-*-pae
+rm -rf /lib/modules/*-ipfire-pae
+grub-mkconfig > /boot/grub/grub.cfg
+sync && sync