Implement audit enrichments, TUI workflows, and production ISO scaffold
This commit is contained in:
20
iso/overlay/etc/init.d/bee-audit
Executable file
20
iso/overlay/etc/init.d/bee-audit
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
}
|
||||
Reference in New Issue
Block a user