summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-system.postinst.in
diff options
context:
space:
mode:
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rw-r--r--debian/vyatta-cfg-system.postinst.in10
1 files changed, 4 insertions, 6 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 46c7e79d..3ee762bd 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -40,12 +40,10 @@ if [ "$sysconfdir" != "/etc" ]; then
fi
# quagga/daemons
- sed -i 's/zebra=no/zebra=yes/' /etc/quagga/daemons
- sed -i 's/bgpd=no/bgpd=yes/' /etc/quagga/daemons
- sed -i 's/ospfd=no/ospfd=yes/' /etc/quagga/daemons
- sed -i 's/ripd=no/ripd=yes/' /etc/quagga/daemons
-
- echo "log syslog warnings" >> /etc/quagga/Quagga.conf
+ if [ -f /etc/quagga/daemons ] ; then
+ sed -i 's/\(zebra\|bgpd\|ripd\|ospfd\)=no/\1=yes/' /etc/quagga/daemons
+ echo "log syslog warnings" >> /etc/quagga/Quagga.conf
+ fi
# add temporary version
echo "Version : glendale (alpha 1)" > $sysconfdir/version