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.
This commit is contained in:
10
battery/dkms/postinstall
Executable file
10
battery/dkms/postinstall
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user