From fb2a014e942f126cbdc441712c15fdbb1b34632a Mon Sep 17 00:00:00 2001 From: surenyi Date: Wed, 8 Jul 2020 19:40:20 +0800 Subject: [PATCH] update README.md Signed-off-by: surenyi --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4bd834c..1eab8a2 100644 --- a/README.md +++ b/README.md @@ -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 +```