[platform-monitor]: Fix sensors.conf file path (#426)

sensors.conf file was moved in #316.
This commit is contained in:
Taoyu Li 2017-03-22 16:59:12 -07:00 committed by Shuotian Cheng
parent 91cca8966d
commit f08874db36

View File

@ -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