You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
surenyi 211279501d fix readme 4 years ago
.gitignore add tty-battery.c 4 years ago
Makefile add tty-battery.c 4 years ago
README.md fix readme 4 years ago
battery_drv.c v1.0 4 years ago
tty-battery.c v1.0 4 years ago
ttybattery.service v1.0 4 years ago
v1.0.zip v1.0 4 years ago

README.md

  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
  1. Install service
    cp ttybattery.service /etc/systemd/system
    chmod 0644 /etc/systemd/system/ttybattery.service
    systemctl enable ttybattery
    systemctl start ttybattery
    systemctl status ttybattery