Update .timer script for battery logger v2
This commit is contained in:
parent
71f7709f7e
commit
984317451b
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue