]> git.entuzijast.net Git - imunes.git/commitdiff
Do not hardcode path to quaggaboot.sh. This allows IMUNES to be run
authormarko <marko>
Mon, 13 Aug 2007 07:12:06 +0000 (07:12 +0000)
committermarko <marko>
Mon, 13 Aug 2007 07:12:06 +0000 (07:12 +0000)
from the development directory without having to install
quaggaboot.sh to /usr/local/bin first.

Bug found by:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

imunes.tcl
quagga.tcl

index ee2b77549dde0cee9160b9b37955b5ab36936f3d..6ff706d920a90b467c827985513349df066dfdef 100755 (executable)
@@ -1,4 +1,4 @@
-# $Id: imunes.tcl,v 1.25 2007/07/20 09:22:26 marko Exp $ 
+# $Id: imunes.tcl,v 1.26 2007/08/13 07:12:06 marko Exp $ 
 #
 # Copyright 2004, 2005 University of Zagreb, Croatia.  All rights reserved.
 #
@@ -85,6 +85,12 @@ if {[lindex $argv 0] == "-b" || [lindex $argv 0] == "--batch"} {
 set LIBDIR ""
 set ROOTDIR "."
 
+if { $ROOTDIR == "." } {
+    set BINDIR ""
+} else {
+    set BINDIR "bin"
+}
+
 source "$ROOTDIR/$LIBDIR/linkcfg.tcl"
 source "$ROOTDIR/$LIBDIR/nodecfg.tcl"
 source "$ROOTDIR/$LIBDIR/ipv4.tcl"
index f6b63cf3f9ff388b81b48a6e8485755d1f48543d..9e02a639d75b712b610bc69736c67efedf9409b8 100755 (executable)
@@ -1,4 +1,4 @@
-# $Id: quagga.tcl,v 1.17 2007/05/07 08:43:20 ana Exp $ 
+# $Id: quagga.tcl,v 1.18 2007/08/13 07:12:06 marko Exp $ 
 #
 # Copyright 2005 University of Zagreb, Croatia.  All rights reserved.
 #
@@ -148,7 +148,9 @@ proc $MODULE.cfggen { node } {
 #****
 
 proc $MODULE.bootcmd { node } {
-     return "/usr/local/bin/quaggaboot.sh"
+    global ROOTDIR BINDIR
+
+    return "$ROOTDIR/$BINDIR/quaggaboot.sh"
 }
 
 #****f* quagga.tcl/router.quagga.shellcmd