#!/usr/bin/env bash for DAEMON in $FRR_DAEMONS do if [ -s "/usr/lib/frr/${DAEMON}" ] then touch /etc/frr/${DAEMON}.conf sed -i "s/${DAEMON}=no/${DAEMON}=yes/" /etc/frr/daemons else echo "No such daemon: ${DAEMON}" fi done service frr restart > /dev/null 2>&1 if [ -f /confint.sh ] then /confint.sh fi bash service frr stop > /dev/null 2>&1