#!/bin/bash # untar kernel and test-check *all* patches could apply. # RESULT: All patches applies clearly #set -x # mount -t tmpfs -o size=3g tmpfs /mnt/linux2x R="/mnt/linux2x/" rm -rf ${R:?}/* tar -xJf kernel/linux-2.0.1.tar.xz -C "$R" --strip-components=1 for i in {2..40} do xzcat patches/patch-2.0."$i".xz | patch -p1 -sd /mnt/linux2x done