From 536c4ce3cb65696aca1ca22ba183c81f097a6986 Mon Sep 17 00:00:00 2001 From: miljenko Date: Wed, 21 Dec 2005 07:45:18 +0000 Subject: [PATCH] For remote execution on PC quaggaboot.sh is set to /usr/local/bin/... Bug found by: Submitted by: Requested by: Reviewed by: Approved by: Obtained from: --- quagga.tcl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/quagga.tcl b/quagga.tcl index 85344c5..067c360 100755 --- a/quagga.tcl +++ b/quagga.tcl @@ -148,7 +148,12 @@ proc $MODULE.cfggen { node } { proc $MODULE.bootcmd { node } { global ROOTDIR LIBDIR - return "$ROOTDIR/$LIBDIR/quaggaboot.sh" + if { $ROOTDIR == "." && $LIBDIR == "." } { + ;# on remote GUI / PC: + return "/usr/local/bin/quaggaboot.sh" + } else { + return "$ROOTDIR/$LIBDIR/quaggaboot.sh" + } } #****f* quagga.tcl/router.quagga.shellcmd -- 2.39.5