#!/bin/sh -e # $Id$ . ./bootstrap LINUX_VER=`wget -O - "$SLACKWARE_ROOT/slackware$BITS-current/kernels/VERSIONS.TXT" | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+'` if [ -e "build/linux-$LINUX_VER" -a ! -e "build/linux-$LINUX_VER.tar.xz" ]; then : else wget "$SLACKWARE_ROOT/slackware$BITS-current/source/k/linux-$LINUX_VER.tar.xz" -O build/linux-$LINUX_VER.tar.xz tar xvf build/linux-$LINUX_VER.tar.xz -C build wget "$SLACKWARE_ROOT/slackware$BITS-current/kernels/generic.s/bzImage" -O sys-root/bzImage cd build/linux-$LINUX_VER make headers_install ARCH=$ARCH INSTALL_HDR_PATH=../../sys-root/usr cd ../.. rm build/linux-$LINUX_VER.tar.xz fi if [ -e "sys-root/lib/modules" -a ! -e "build/kernel-$LINUX_VER.txz" ]; then : else wget https://mirror.slackware.jp/slackware/slackware64-current/slackware64/a/kernel-generic-$LINUX_VER-$ARCH-1.txz -O build/kernel-$LINUX_VER.txz tar xkvf build/kernel-$LINUX_VER.txz -C sys-root/usr lib rm -f build/kernel-$LINUX_VER.txz fi