From 54a57f5ffc98df1097d4d3b7b3e4e0cffe27eb12 Mon Sep 17 00:00:00 2001 From: Tom Grennan Date: Thu, 3 Jan 2008 18:11:14 -0800 Subject: work w/ either quagga (debian) or vyatta-quagga packages --- debian/vyatta-cfg-system.postinst.in | 10 ++++------ 1 file 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 -- cgit v1.2.3