Skip to content

Commit

Permalink
added dkms check to rc.local
Browse files Browse the repository at this point in the history
  • Loading branch information
hdumcke committed Aug 15, 2023
1 parent 128ecc5 commit cddc9ec
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit cddc9ec

Please sign in to comment.