command -v systemd-tmpfiles >/dev/null && systemd-tmpfiles --create /lib/tmpfiles.d/frr.conf ||: || :
/usr/sbin/post_service frr
# Create dummy files if they don't exist so basic functions can be used.
if [ ! -e /etc/frr/frr.conf ]; then
echo "hostname `hostname`" > /etc/frr/frr.conf
chown frr:frr /etc/frr/frr.conf
chmod 640 /etc/frr/frr.conf
fi
#still used by vtysh, this way no error is produced when using vtysh
if [ ! -e /etc/frr/vtysh.conf ]; then
touch /etc/frr/vtysh.conf
chmod 640 /etc/frr/vtysh.conf
chown frr:frrvty /etc/frr/vtysh.conf
fi