summaryrefslogtreecommitdiff
path: root/contrib/bmc-snmp-proxy
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2022-09-10 15:44:42 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2022-09-10 15:44:42 +0200
commitd83fb6dd0cdb8d4509fda0c6e77bbeb0fcd018a8 (patch)
tree2599d2b8a9e660bff139cbd2a32d777ad30e0c9d /contrib/bmc-snmp-proxy
parent36a24e9032591da8cc7688f69e7e9f5f41ffe4ab (diff)
parenta9ee361f27e0439530387765924574e5358c8a5c (diff)
Update upstream source from tag 'upstream/1.8.19'
Update to upstream version '1.8.19' with Debian dir 820184ee2ea8eb8c4a7769d0a89d5236e5775134
Diffstat (limited to 'contrib/bmc-snmp-proxy')
-rw-r--r--contrib/bmc-snmp-proxy8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/bmc-snmp-proxy b/contrib/bmc-snmp-proxy
index fcb2ab8..6e69e61 100644
--- a/contrib/bmc-snmp-proxy
+++ b/contrib/bmc-snmp-proxy
@@ -27,9 +27,9 @@ TRAPD_BMC_CONF="${SNMPD_BMC_CONF_DIR}/snmptrapd.local.conf"
TRAPD_CONF="/etc/snmp/snmptrapd.conf"
LOCKFILE="/var/lock/subsys/bmc-snmp-proxy"
-BMC_INFO="/var/run/bmc-info"
+BMC_INFO="/run/bmc-info"
-IPMITOOL=`which ipmitool`
+IPMITOOL=$(which ipmitool)
#Default config
BMC_COMMUNITY="public"
@@ -158,7 +158,7 @@ pick_alert_dest()
{
test_ip="$1"
# We have 4 IPv4 and 4 IPv6 alert dest. We will set IPv4 for now.
- for ALERT_DEST in `seq 1 4`
+ for ALERT_DEST in $(seq 1 4)
do
temp_ip=$(${IPMITOOL} lan alert print ${CHANNEL} ${ALERT_DEST}\
2>/dev/null| sed -n "s#^Alert IP Address.*: ##p")
@@ -178,7 +178,7 @@ config_bmc_alert_dest()
{
# call with enable|disable
# Pick the first active LAN channel
- for CHANNEL in `seq 1 14`
+ for CHANNEL in $(seq 1 14)
do
[ $(${IPMITOOL} -I open channel info ${CHANNEL} 2>/dev/null \
| grep -q "802\.3") ] || break