[platform-monitor]: Fix sensors.conf file path (#426)
sensors.conf file was moved in #316.
This commit is contained in:
parent
91cca8966d
commit
f08874db36
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user