burrow-pi-img/stage3/02-install-rt-kernel/01-run.sh
2020-07-26 20:34:59 +01:00

10 lines
312 B
Bash
Executable File

#!/bin/bash -e
wget https://github.com/BlokasLabs/rpi-kernel-rt/archive/${RT_KERNEL_VERSION}.tar.gz -O /tmp/${RT_KERNEL_VERSION}.tar.gz
# Remove regular kernel modules.
rm -r ${ROOTFS_DIR}/lib/modules/*
tar -xvf /tmp/${RT_KERNEL_VERSION}.tar.gz --strip 1 -C ${ROOTFS_DIR}/
rm /tmp/${RT_KERNEL_VERSION}.tar.gz