Skip to content

Commit

Permalink
Add OpenMediaVault detection to distro script
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxgasy committed Jul 15, 2023
1 parent f846574 commit 21bf28d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snmp/distro
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 21bf28d

Please sign in to comment.