Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- #
- # Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc.
- #
- # This program is free software; you can redistribute it and/or modify it
- # under the terms of the GNU Library General Public License as published
- # by the Free Software Foundation; either version 2, or (at your option)
- # any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- #
- # Remove unused linux kernel image from system
- # save it to /usr/bin/purgekernel.sh
- # Usage: purgekernel.sh <kernelnum>
- # where <kernelnum> would be something like 2.6.32-38
- apt-get --purge remove linux-image-$1-generic linux-headers-$1 linux-headers-$1-generic
- rm -rf /lib/modules/$1-generic
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement