From 47b7016ed5ac6dd8efc041060d62e632e937a6d2 Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Sun, 21 Apr 2024 13:52:26 +0200 Subject: Initial commit --- stale/pack_kernel.sh_old | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 stale/pack_kernel.sh_old (limited to 'stale/pack_kernel.sh_old') diff --git a/stale/pack_kernel.sh_old b/stale/pack_kernel.sh_old new file mode 100644 index 0000000..faf92df --- /dev/null +++ b/stale/pack_kernel.sh_old @@ -0,0 +1,26 @@ +#!/bin/bash + +DIR=/tmp/kernel +if [ -f include/generated/utsrelease.h ]; then + FILE=include/generated/utsrelease.h; +else + FILE=include/linux/utsrelease.h; +fi +version=$(grep UTS_RELEASE $FILE | cut -f 2 -d '"'); +if [ -z "$version" ]; then + echo "couldn't get version" >&2; + exit 1; +fi +echo "version is $version" >&2 +rm -Rf $DIR +make $(cat vars) modules_install INSTALL_MOD_PATH=$DIR/ >/dev/null; +mkdir $DIR/boot +cp .config $DIR/boot/config-$version; +cp System.map $DIR/boot/System.map-$version; +cp arch/x86/boot/bzImage $DIR/boot/vmlinuz-$version; +cd $DIR +tar cfj /tmp/$version.tar.bz2 * +cd ..; +echo $version.tar.bz2; +scp /tmp/$version.tar.bz2 cem@lobo.ruivo.org:./public_html/kernel/ + -- cgit v1.2.3