summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 13ba6dc6..51caf80a 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 : eureka (beta)" > $sysconfdir/version