2017-05-08 17:43:31 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-08-17 17:46:29 -05:00
|
|
|
mkdir -p /etc/ssw /etc/snmp
|
2017-05-08 17:43:31 -05:00
|
|
|
|
2020-08-17 17:46:29 -05:00
|
|
|
SONIC_CFGGEN_ARGS=" \
|
|
|
|
-d \
|
|
|
|
-y /etc/sonic/sonic_version.yml \
|
|
|
|
-t /usr/share/sonic/templates/sysDescription.j2,/etc/ssw/sysDescription \
|
|
|
|
-y /etc/sonic/snmp.yml \
|
|
|
|
-t /usr/share/sonic/templates/snmpd.conf.j2,/etc/snmp/snmpd.conf \
|
|
|
|
"
|
|
|
|
|
|
|
|
sonic-cfggen $SONIC_CFGGEN_ARGS
|
2017-05-08 17:43:31 -05:00
|
|
|
|
|
|
|
mkdir -p /var/sonic
|
|
|
|
echo "# Config files managed by sonic-config-engine" > /var/sonic/config_status
|