Files
Jeff Curless b8650dc702 Modify the post install
Remove stuff that does not need to be there.  Cannot insmod after DKMS
runs because the built module will be incorrect.
2026-02-06 13:21:26 -05:00

11 lines
341 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