e87498d16d
* Add platform config for 7050 and 6100 * allow certain platform to have no sensors.conf file in sonic-cfggen
15 lines
330 B
Bash
Executable File
15 lines
330 B
Bash
Executable File
#!/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 ]
|
|
then
|
|
/bin/cp -rf /usr/share/sonic/$hwsku/sensors.conf /etc/sensors.d/
|
|
fi
|
|
|
|
mkdir -p /var/sonic
|
|
echo "# Config files managed by sonic-config-engine" >/var/sonic/config_status
|
|
|