You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
356 B
24 lines
356 B
5 years ago
|
#!/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
|