X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=src%2Fpaks%2Flinux-pae%2Funinstall.sh;h=443328b24d98a438fb2c834402e53ae19dd71be5;hp=959fdb1a7e2c818d5eb84cf52382f64294138b50;hb=1a01c170110374afcc6b7cfe26e63623e4f3aabb;hpb=e32571f0316a01ea940145287a5588640e3a3c2c diff --git a/src/paks/linux-pae/uninstall.sh b/src/paks/linux-pae/uninstall.sh index 959fdb1a7e..443328b24d 100644 --- a/src/paks/linux-pae/uninstall.sh +++ b/src/paks/linux-pae/uninstall.sh @@ -17,10 +17,18 @@ # 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 . # +# Copyright (C) 2007-2014 IPFire-Team . # # # ############################################################################ # . /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/initramfs-*-pae.img +rm -rf /boot/vmlinuz-*-pae +rm -rf /lib/modules/*-ipfire-pae +if [ -f /boot/grub/grub.conf ]; then + cp /boot/grub/grub.conf /boot/grub/grub-backup-pae_uninstall.conf + sed -i "/title IPFire (PAE-Kernel)/,+3d" /boot/grub/grub.conf +fi +grub-mkconfig > /boot/grub/grub.cfg +sync && sync