From 128ecc59e5f830f37421a46e5d76d4121b74a9ff Mon Sep 17 00:00:00 2001 From: Horst Dumcke Date: Tue, 15 Aug 2023 16:54:36 +0200 Subject: [PATCH 1/2] fixing dkms.conf --- rpi-i2s-audio/dkms.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpi-i2s-audio/dkms.conf b/rpi-i2s-audio/dkms.conf index bb997af..61d492a 100644 --- a/rpi-i2s-audio/dkms.conf +++ b/rpi-i2s-audio/dkms.conf @@ -1,6 +1,6 @@ BUILT_MODULE_NAME=rpi-i2s-audio DEST_MODULE_LOCATION=/updates -PACKAGE_NAME=at24 +PACKAGE_NAME=rpi-i2s-audio PACKAGE_VERSION=1.0 REMAKE_INITRD=no AUTOINSTALL=yes From cddc9ec9651295d7b4afec524e288dd7493fb3b5 Mon Sep 17 00:00:00 2001 From: Horst Dumcke Date: Tue, 15 Aug 2023 17:57:06 +0200 Subject: [PATCH 2/2] added dkms check to rc.local --- System/rc.local | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/System/rc.local b/System/rc.local index f45c24d..e5ec4dc 100755 --- a/System/rc.local +++ b/System/rc.local @@ -3,6 +3,14 @@ # Copyright (c) 2020, MangDang Technology Co., Limited # +# update kernel modules if required and reboot +# this covers the case where the kernel is updated before our install script run +if ! $(dkms status | grep -q $(uname -r)) +then + sudo /usr/sbin/dkms autoinstall --verbose --kernelver $(uname -r) + sudo reboot +fi + # set cpu performance echo performance > /sys/bus/cpu/devices/cpu0/cpufreq/scaling_governor