mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
firmware: check repository and plugin state in health audit
More often than not this is useful to know.
This commit is contained in:
parent
87f0302e79
commit
bf484cbcf2
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (C) 2017-2021 Franco Fichtner <franco@opnsense.org>
|
||||
# Copyright (C) 2017-2022 Franco Fichtner <franco@opnsense.org>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@ -217,6 +217,17 @@ echo "Currently running $(opnsense-version) at $(date)" >> ${LOCKFILE}
|
||||
set_check kernel
|
||||
set_check base
|
||||
|
||||
echo ">>> Check installed repositories" | ${TEE} ${LOCKFILE}
|
||||
(opnsense-verify -l 2>&1) | ${TEE} ${LOCKFILE}
|
||||
|
||||
echo ">>> Check installed plugins" | ${TEE} ${LOCKFILE}
|
||||
PLUGINS=$(pkg query -g '%n %v' 'os-*' 2>&1)
|
||||
if [ -n "${PLUGINS}" ]; then
|
||||
(echo "${PLUGINS}") | ${TEE} ${LOCKFILE}
|
||||
else
|
||||
echo "No plugins found." | ${TEE} ${LOCKFILE}
|
||||
fi
|
||||
|
||||
echo ">>> Check for missing package dependencies" | ${TEE} ${LOCKFILE}
|
||||
(pkg check -dan 2>&1) | ${TEE} ${LOCKFILE}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user