From f08874db360b940b5c1705dc05161297184393ee Mon Sep 17 00:00:00 2001 From: Taoyu Li Date: Wed, 22 Mar 2017 16:59:12 -0700 Subject: [PATCH] [platform-monitor]: Fix sensors.conf file path (#426) sensors.conf file was moved in #316. --- dockers/docker-platform-monitor/config.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dockers/docker-platform-monitor/config.sh b/dockers/docker-platform-monitor/config.sh index a74c2f5c9097..7021f18aacb8 100755 --- a/dockers/docker-platform-monitor/config.sh +++ b/dockers/docker-platform-monitor/config.sh @@ -1,12 +1,9 @@ #!/bin/bash mkdir -p /etc/sensors.d - -hwsku=`sonic-cfggen -m /etc/sonic/minigraph.xml -v minigraph_hwsku` - -if [ -e /usr/share/sonic/$hwsku/sensors.conf ] +if [ -e /usr/share/sonic/platform/sensors.conf ] then - /bin/cp -rf /usr/share/sonic/$hwsku/sensors.conf /etc/sensors.d/ + /bin/cp -rf /usr/share/sonic/platform/sensors.conf /etc/sensors.d/ fi mkdir -p /var/sonic