Files
argon40-battery-display/battery/dkms/postinstall
Jeff Curless 6c84fd6422 Initial version of DKMS support.
Worked once, will not work again.  Build occurs, dkms reports that the
build of ./src/oneUpPower.ko failed.  Kernel module is being generated,
but not located anywhere it can be found.
2026-01-10 17:53:21 -05:00

11 lines
338 B
Bash
Executable File

#!/bin/bash
#sudo cp -vf oneUpPower.ko /lib/modules/`uname -r`/kernel/drivers/power/supply/oneUpPower.ko
if ! grep -qF "oneUpPower" /etc/modules
then
sudo sh -c 'echo "oneUpPower" >> /etc/modules'
fi
sudo sh -c 'echo "options oneUpPower soc_shutdown=5" > /etc/modprobe.d/oneUpPower.conf'
sudo depmod -a
sudo insmod oneUpPower.ko
sync