~kirkland/byobu/trunk

« back to all changes in this revision

Viewing changes to usr/bin/purge-old-kernels

  • Committer: kirkland at ubuntu
  • Date: 2023-11-22 22:45:43 UTC
  • Revision ID: kirkland@ubuntu.com-20231122224543-v5igclwtj4xga8tm
Permanently moved Byobu source code repository to https://github.com/dustinkirkland/byobu

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
#
3
 
#    purge-old-kernels - remove old kernel packages
4
 
#    Copyright (C) 2012 Dustin Kirkland <kirkland@ubuntu.com>
5
 
#
6
 
#    Authors: Dustin Kirkland <kirkland@ubuntu.com>
7
 
#             Kees Cook <kees@ubuntu.com>
8
 
#
9
 
#    This program is free software: you can redistribute it and/or modify
10
 
#    it under the terms of the GNU General Public License as published by
11
 
#    the Free Software Foundation, version 3 of the License.
12
 
#
13
 
#    This program is distributed in the hope that it will be useful,
14
 
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
#    GNU General Public License for more details.
17
 
#
18
 
#    You should have received a copy of the GNU General Public License
19
 
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
 
 
21
 
# apt autoremove supposedly works correctly now.
22
 
#
23
 
# Thus, we're deprecating the functionality previously found
24
 
# in purge-old-kernels.
25
 
#
26
 
# If you still have old kernels lying around after this, please
27
 
# file a bug against apt: https://bugs.launchpad.net/ubuntu/+source/apt/+filebug
28
 
 
29
 
sudo apt-get $@ autoremove