Refactor bee CLI and LiveCD integration
This commit is contained in:
@@ -29,7 +29,7 @@ info "kernel: $KVER"
|
||||
|
||||
# --- PATH & binaries ---
|
||||
echo "-- PATH & binaries --"
|
||||
for tool in dmidecode smartctl nvme ipmitool lspci audit; do
|
||||
for tool in dmidecode smartctl nvme ipmitool lspci bee; do
|
||||
if p=$(PATH="/usr/local/bin:$PATH" command -v "$tool" 2>/dev/null); then
|
||||
ok "$tool found: $p"
|
||||
else
|
||||
@@ -114,14 +114,14 @@ for svc in ssh bee-sshsetup; do
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "-- audit binary --"
|
||||
AUDIT=/usr/local/bin/audit
|
||||
if [ -x "$AUDIT" ]; then
|
||||
ok "audit binary: present"
|
||||
ver=$("$AUDIT" --version 2>/dev/null || "$AUDIT" version 2>/dev/null || echo "unknown")
|
||||
info "audit version: $ver"
|
||||
echo "-- bee binary --"
|
||||
BEE=/usr/local/bin/bee
|
||||
if [ -x "$BEE" ]; then
|
||||
ok "bee binary: present"
|
||||
ver=$("$BEE" version 2>/dev/null || echo "unknown")
|
||||
info "bee version: $ver"
|
||||
else
|
||||
fail "audit binary: NOT FOUND at $AUDIT"
|
||||
fail "bee binary: NOT FOUND at $BEE"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user