From 3d295767dba9373f82f9fde257b66a1dbac60bcf Mon Sep 17 00:00:00 2001 From: marko Date: Tue, 2 Aug 2005 11:13:48 +0000 Subject: [PATCH] Fix exec.tcl so that it can run without any traces of quagga (no package installed and no quagga specific directories). Bug found by: Atanu Ghosh Submitted by: Requested by: Reviewed by: Approved by: Obtained from: --- exec.tcl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exec.tcl b/exec.tcl index 9b88a37..661c23f 100755 --- a/exec.tcl +++ b/exec.tcl @@ -260,10 +260,10 @@ proc deployCfg {} { nexec rm -fr /var/run/quagga nexec rm -f /usr/local/etc/quagga/Quagga.conf - nexec ln -s /tmp/@ /var/run/quagga - nexec ln -s /tmp/@/boot.conf /usr/local/etc/quagga/Quagga.conf + catch { nexec ln -s /tmp/@ /var/run/quagga } + catch { nexec ln -s /tmp/@/boot.conf /usr/local/etc/quagga/Quagga.conf } foreach file { bgpd.conf ospfd.conf ripd.conf vtysh.conf zebra.conf } { - nexec cp /dev/null /usr/local/etc/quagga/$file + catch { nexec cp /dev/null /usr/local/etc/quagga/$file } } foreach node $nodes { -- 2.39.5