diff --git a/dockers/docker-platform-monitor/config.sh b/dockers/docker-platform-monitor/config.sh index a74c2f5c90..7021f18aac 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