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:
Jeff Curless
2026-01-10 17:53:21 -05:00
parent 4a74ca431d
commit 6c84fd6422
5 changed files with 50 additions and 0 deletions

16
battery/setupdkms Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
DKMS_DEST=/usr/src/oneUpPower-1.0
DKMS_SRC=$DKMS_DEST/src
#
# Setup DKMS
#
sudo mkdir -p $DKMS_SRC
sudo cp ./dkms/dkms.conf $DKMS_DEST/dkms.conf
sudo cp ./dkms/postinstall $DKMS_DEST/postinstall
sudo cp ./dkms/Makefile $DKMS_SRC/Makefile
sudo cp oneUpPower.c $DKMS_SRC/oneUpPower.c
sudo dkms add -m oneUpPower -v 1.0
sudo dkms build -m oneUpPower -v 1.0
sudo dkms install -m oneUpPower -v 1.0