From 4a1368980ae709b66f6560482685c1bf017000d7 Mon Sep 17 00:00:00 2001 From: Garcia MICHEL Date: Wed, 8 Nov 2023 05:21:53 +0100 Subject: [PATCH] Add OpenMediaVault detection to distro script (#484) --- snmp/distro | 3 +++ 1 file changed, 3 insertions(+) diff --git a/snmp/distro b/snmp/distro index da06f943a..843eef062 100755 --- a/snmp/distro +++ b/snmp/distro @@ -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"