Skip to content

Commit

Permalink
Merge pull request #61 from hdumcke/fix-dkms
Browse files Browse the repository at this point in the history
Fix dkms
  • Loading branch information
mangdangroboticsclub committed Aug 15, 2023
2 parents 6723afe + cddc9ec commit 9bc10e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions System/rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion rpi-i2s-audio/dkms.conf
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9bc10e3

Please sign in to comment.