forked from copper-project/copper-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
27 lines (24 loc) · 821 Bytes
/
Copy pathjustfile
File metadata and controls
27 lines (24 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import "../../justfile"
balancebot-dump-text-logs:
#!/usr/bin/env bash
set -euo pipefail
cargo run --bin balancebot-logreader -- logs/balance.copper extract-text-log ../../target/debug/cu29_log_index/strings.bin
balancebot-fsck:
#!/usr/bin/env bash
set -euo pipefail
cargo run --bin balancebot-logreader -- logs/balance.copper fsck
balancebot-set-pwm-permissions:
#!/usr/bin/env bash
set -euo pipefail
for pwm in /sys/class/pwm/pwmchip0/pwm*/; do
chmod 0660 "${pwm}enable"
chmod 0660 "${pwm}duty_cycle"
chmod 0660 "${pwm}period"
chmod 0660 "${pwm}polarity"
chown root:wheel "${pwm}enable"
chown root:wheel "${pwm}duty_cycle"
chown root:wheel "${pwm}period"
chown root:wheel "${pwm}polarity"
done
chmod 0660 /sys/class/pwm/pwmchip0/unexport
chown root:wheel /sys/class/pwm/pwmchip0/unexport