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 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