From: marko Date: Tue, 2 Aug 2005 11:13:48 +0000 (+0000) Subject: Fix exec.tcl so that it can run without any traces of quagga (no package X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=3d295767dba9373f82f9fde257b66a1dbac60bcf;p=imunes.git 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: --- 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 {