21 lines
431 B
Plaintext
Executable File
21 lines
431 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="Bee: run hardware audit (production unattended mode)"
|
|
|
|
depend() {
|
|
need localmount
|
|
after bee-update bee-nvidia
|
|
}
|
|
|
|
start() {
|
|
ebegin "Running hardware audit"
|
|
/usr/local/bin/audit --output usb > /var/log/bee-audit.json 2>/var/log/bee-audit.log
|
|
rc=$?
|
|
if [ "$rc" -eq 0 ]; then
|
|
einfo "Audit complete"
|
|
else
|
|
ewarn "Audit finished with errors"
|
|
fi
|
|
eend 0
|
|
}
|