summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2008-01-03 18:11:14 -0800
committerTom Grennan <tgrennan@vyatta.com>2008-01-03 18:11:14 -0800
commit54a57f5ffc98df1097d4d3b7b3e4e0cffe27eb12 (patch)
treec318c6f67e746ecfffbe23deeb065b2feae1f021 /debian
parent793d580050edada4b4468b0d8044615ff5fc15aa (diff)
downloadvyatta-cfg-quagga-54a57f5ffc98df1097d4d3b7b3e4e0cffe27eb12.tar.gz
vyatta-cfg-quagga-54a57f5ffc98df1097d4d3b7b3e4e0cffe27eb12.zip
work w/ either quagga (debian) or vyatta-quagga packages
Diffstat (limited to 'debian')
-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