1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

Add OpenMediaVault detection to distro script (#484)

This commit is contained in:
Garcia MICHEL
2023-11-08 05:21:53 +01:00
committed by GitHub
parent e34cde0385
commit 4a1368980a

View File

@ -78,6 +78,9 @@ elif [ "${OS}" = "Linux" ] ; then
if [ -f /etc/dogtag ]; then
DIST=$(cat /etc/dogtag)
fi
if [ -f /usr/sbin/omv-sysinfo ]; then
DIST="${DIST}/OpenMediaVault $(/usr/sbin/omv-sysinfo 00-omv-version | grep Release | cut -d: -f2 | sed 's/\s//g')"
fi
elif [ -f /etc/gentoo-release ] ; then
DIST="Gentoo"