mirror of
https://github.com/rancher/os-kernel.git
synced 2025-09-12 12:59:14 +00:00
22 lines
499 B
Bash
Executable File
22 lines
499 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -x
|
|
|
|
echo "Kernel extras for ${KERNEL_VERSION}"
|
|
|
|
#DIR=/lib/modules/${KERNEL_VERSION}/build
|
|
STAMP=/lib/modules/${KERNEL_VERSION}/.extras-done
|
|
|
|
if [ -e $STAMP ]; then
|
|
echo Kernel extras for ${KERNEL_VERSION} already installed. Delete $STAMP to reinstall
|
|
exit 0
|
|
fi
|
|
|
|
cat /extras.tar.gz | gzip -dc | tar xf - -C /
|
|
if [ "${KERNEL_VERSION}" == "$(uname -r)" ]; then
|
|
depmod -a
|
|
fi
|
|
touch $STAMP
|
|
|
|
echo Kernel extras for ${KERNEL_VERSION} installed. Delete $STAMP to reinstall
|