2020-05-14 23:05:35 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
mkdir -p /etc/supervisor/conf.d
|
|
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/docker-router-advertiser.supervisord.conf.j2 > /etc/supervisor/conf.d/supervisord.conf
|
|
|
|
|
|
|
|
# Generate /etc/radvd.conf config file
|
|
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/radvd.conf.j2 > /etc/radvd.conf
|
|
|
|
|
|
|
|
# Generate the script that waits for pertinent interfaces to come up and make it executable
|
2020-08-21 15:12:01 -05:00
|
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/wait_for_link.sh.j2 > /usr/bin/wait_for_link.sh
|
|
|
|
chmod +x /usr/bin/wait_for_link.sh
|
2020-05-14 23:05:35 -05:00
|
|
|
|
|
|
|
exec /usr/bin/supervisord
|