From 107d72e862c2e2a53870272859252a5d39bf8c72 Mon Sep 17 00:00:00 2001 From: Jason Cheng <30381035+jasoncheng7115@users.noreply.github.com> Date: Tue, 25 Dec 2018 09:15:22 +0800 Subject: [PATCH] Added Proxmox VE Versoin support --- snmp/distro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snmp/distro b/snmp/distro index 9f1e9d4..cd9e814 100755 --- a/snmp/distro +++ b/snmp/distro @@ -59,7 +59,10 @@ elif [ "${OS}" = "Linux" ] ; then if [ "${ID}" = "Raspbian" ] ; then DIST="Raspbian `cat /etc/debian_version`" fi - + if [ -f /usr/bin/pveversion ]; then + DIST="${DIST}/PVE `/usr/bin/pveversion | cut -d '/' -f 2`" + fi + elif [ -f /etc/gentoo-release ] ; then DIST="Gentoo" REV=$(tr -d '[[:alpha:]]'