Update .timer script for battery logger v2

This commit is contained in:
Akemi Izuko 2023-09-02 16:47:09 -06:00
parent 71f7709f7e
commit 984317451b
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC
2 changed files with 3 additions and 3 deletions

View file

@ -6,4 +6,4 @@ Wants=log_battery.timer
User=root User=root
Group=root Group=root
Type=oneshot Type=oneshot
ExecStart=/usr/local/bin/log_battery.sh /org/freedesktop/UPower/devices/battery_BAT0 /home/emiliko/safe/loggers/battery/battery.csv ExecStart=/usr/local/bin/log_battery.sh BAT0 /home/emiliko/safe/loggers/battery/battery.csv

View file

@ -7,9 +7,9 @@ declare -r write_path="$2"
if [[ $# -ne 2 ]]; then if [[ $# -ne 2 ]]; then
cat <<HELP cat <<HELP
log_battery systemd.timer v2.0 log_battery systemd.timer v2.1
USAGE: $(basename "$0") <battery-name> <csv-path>" USAGE: $(basename "$0") <battery-name> <csv-path>
EXAMPLES: EXAMPLES:
$(basename "$0") BAT0 /home/emiliko/loggers/battery.csv $(basename "$0") BAT0 /home/emiliko/loggers/battery.csv