--- /dev/null
+hostname bgpd
+password cn321
+enable password cn321
+log timestamp precision 6
+log file /var/log/quagga/bgpd.log
--- /dev/null
+#
+# If this option is set the /etc/init.d/quagga script automatically loads
+# the config via "vtysh -b" when the servers are started.
+# Check /etc/pam.d/quagga if you intend to use "vtysh"!
+#
+vtysh_enable=yes
+zebra_options=" --daemon -A 127.0.0.1"
+bgpd_options=" --daemon -A 127.0.0.1"
+ospfd_options=" --daemon -A 127.0.0.1"
+ospf6d_options=" --daemon -A ::1"
+ripd_options=" --daemon -A 127.0.0.1"
+ripngd_options=" --daemon -A ::1"
+isisd_options=" --daemon -A 127.0.0.1"
+babeld_options=" --daemon -A 127.0.0.1"
+# The list of daemons to watch is automatically generated by the init script.
+watchquagga_enable=yes
+watchquagga_options=(-adz -r /usr/sbin/servicebBquaggabBrestartbB%s -s /usr/sbin/servicebBquaggabBstartbB%s -k /usr/sbin/servicebBquaggabBstopbB%s -b bB -t 30)
--- /dev/null
+hostname ospfd
+password cn321
+enable password cn321
+log timestamp precision 6
+log file /var/log/quagga/ospf6d.log
--- /dev/null
+hostname ospfd
+password cn321
+enable password cn321
+log timestamp precision 6
+log file /var/log/quagga/ospfd.log
--- /dev/null
+service integrated-vtysh-config
+username cumulus nopassword
--- /dev/null
+hostname zebra
+password cn321
+enable password cn321
+log file /var/log/quagga/zebra.log
--- /dev/null
+Defaults env_keep += VTYSH_PAGER
usr/share/man/man8/quagga-babeld.8
usr/share/man/man8/watchquagga.8
usr/share/snmp/mibs/
+cumulus/etc/* etc/
#!/bin/bash -e
+######################
+PASSWDFILE=/etc/passwd
+GROUPFILE=/etc/group
+
+quaggauid=`egrep "^quagga:" $PASSWDFILE | awk -F ":" '{ print $3 }'`
+quaggagid=`egrep "^quagga:" $GROUPFILE | awk -F ":" '{ print $3 }'`
+quaggavtygid=`egrep "^quaggavty:" $GROUPFILE | awk -F ":" '{ print $3 }'`
+
+[ -n ${quaggauid} ] || (echo "No uid for quagga in ${PASSWDFILE}" && /bin/false)
+[ -n ${quaggagid} ] || (echo "No gid for quagga in ${GROUPFILE}" && /bin/false)
+[ -n ${quaggaVTYgid} ] || (echo "No gid for quaggavty in ${GROUPFILE}" && /bin/false)
+
+chown -R ${quaggauid}:${quaggagid} /etc/quagga
+chgrp ${quaggavtygid} /etc/quagga/vtysh*
+chmod 440 /etc/sudoers.d/quagga_sudoers
+chmod 644 /etc/quagga/*
+
+ENVIRONMENTFILE=/etc/environment
+if ! grep --quiet VTYSH_PAGER=/bin/cat ${ENVIRONMENTFILE}; then
+ echo "VTYSH_PAGER=/bin/cat" >> ${ENVIRONMENTFILE}
+fi
+##################################################
+
if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*"}