4fe1bdcf87
Add a sonic-config-engine to help generate config file based on minigraph and other data on runtime. Modify fpm, teamd, lldp, snmp, and platform-monitor docker to use sonic-config-engine to generate config in docker upon load.
8 lines
172 B
Bash
Executable File
8 lines
172 B
Bash
Executable File
#!/bin/bash
|
|
|
|
mkdir -p /etc/sensors.d
|
|
|
|
hwsku=`sonic-cfggen -m /etc/sonic/minigraph.xml -v minigraph_hwsku`
|
|
/bin/cp -rf /usr/share/sonic/$hwsku/sensors.conf /etc/sensors.d/
|
|
|