Skip to content

Commit

Permalink
[platform-monitor]: Fix sensors.conf file path (#426)
Browse files Browse the repository at this point in the history
sensors.conf file was moved in #316.
  • Loading branch information
taoyl-ms authored and Shuotian Cheng committed Mar 22, 2017
1 parent 91cca89 commit f08874d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions dockers/docker-platform-monitor/config.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f08874d

Please sign in to comment.