blob: 14a23b29559c3b88a61ac5d69e29ccb9235271e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
set -e
set -x
if [ $(id -u) -ne 0 ] ; then
echo "You must be root"
exit 1;
fi
if [ -z "$1" ] ; then
echo "Usage: $0 \$version"
echo "Will place currently installed kernel \$version in the current directory"
exit 1;
fi
version="$1"; shift
tar -C / -cvf - \
"/usr/lib/modules/$version" \
"/boot/config-$version" \
"/boot/vmlinuz-$version" \
"/boot/System.map-${version}" \
"/boot/initramfs-${version}.img" \
| gzip -3c > $version.tar.gz
|