surenyi
4 years ago
1 changed files with 9 additions and 5 deletions
@ -1,13 +1,17 @@ |
|||
1. Install driver |
|||
``` |
|||
mkdir -p /lib/modules/`uname -r`/extra |
|||
cp battery_drv.ko /lib/modules/`uname -r`/extra |
|||
depmod -a |
|||
echo battery_drv >> /etc/modules |
|||
``` |
|||
|
|||
2. Install service |
|||
sudo cp ttybattery.service to /etc/systemd/system |
|||
sudo chmod 0644 /etc/systemd/system/ttybattery.service |
|||
sudo systemctl enable ttybattery |
|||
sudo systemctl start ttybattery |
|||
sudo systemctl status ttybattery |
|||
``` |
|||
cp ttybattery.service to /etc/systemd/system |
|||
chmod 0644 /etc/systemd/system/ttybattery.service |
|||
systemctl enable ttybattery |
|||
systemctl start ttybattery |
|||
systemctl status ttybattery |
|||
``` |
|||
|
|||
|
Loading…
Reference in new issue