Update .timer script for battery logger v2

This commit is contained in:
Akemi Izuko 2023-12-23 20:14:16 -07:00
parent 4c33e0ce65
commit f0b3b67c68
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
Group=root
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
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:
$(basename "$0") BAT0 /home/emiliko/loggers/battery.csv