Commit 210acd7b authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add small elabinelab hack for Mike, allowing you to set tarfiles for

inner boss and ops:

	namespace eval TBCOMPAT {
	    set elabinelab_tarfiles("boss") "/usr/site /foo/silly.tar.gz"
	}

Ditto for "ops". You can specify multiple tarfiles of course in the
string, just as tb-set-node-tarfiles allows.
parent 23146b0d
...@@ -34,6 +34,38 @@ if {[info exists ::TBCOMPAT::elabinelab_fixnodes("ops")]} { ...@@ -34,6 +34,38 @@ if {[info exists ::TBCOMPAT::elabinelab_fixnodes("ops")]} {
} }
} }
# Deal with tarfiles
set myboss_tarfiles ""
set myops_tarfiles ""
if {${::TBCOMPAT::elabinelab_source_tarfile} != ""} {
append myboss_tarfiles "/usr/src ${::TBCOMPAT::elabinelab_source_tarfile}"
append myops_tarfiles "/usr/src ${::TBCOMPAT::elabinelab_source_tarfile}"
}
if {[info exists ::TBCOMPAT::elabinelab_tarfiles("boss")]} {
if {$myboss_tarfiles != ""} {
append myboss_tarfiles " "
}
namespace eval TBCOMPAT {
append myboss_tarfiles $elabinelab_tarfiles("boss")
}
}
if {[info exists ::TBCOMPAT::elabinelab_tarfiles("ops")]} {
if {$myops_tarfiles != ""} {
append myops_tarfiles " "
}
namespace eval TBCOMPAT {
append myops_tarfiles $elabinelab_tarfiles("ops")
}
}
if {$myboss_tarfiles != ""} {
tb-set-node-tarfiles $myboss $myboss_tarfiles
}
if {$myops_tarfiles != ""} {
tb-set-node-tarfiles $myops $myops_tarfiles
}
tb-make-soft-vtype pcslow {pc600 pc850} tb-make-soft-vtype pcslow {pc600 pc850}
# #
...@@ -47,11 +79,6 @@ if { ${::TBCOMPAT::elabinelab_maxpcs} != 0 } { ...@@ -47,11 +79,6 @@ if { ${::TBCOMPAT::elabinelab_maxpcs} != 0 } {
set maxpcs 0 set maxpcs 0
} }
if { ${::TBCOMPAT::elabinelab_source_tarfile} != "" } {
tb-set-node-tarfiles $myboss /usr/src ${::TBCOMPAT::elabinelab_source_tarfile}
tb-set-node-tarfiles $myops /usr/src ${::TBCOMPAT::elabinelab_source_tarfile}
}
set lanstr "myboss myops " set lanstr "myboss myops "
for {set i 1} {$i <= $maxpcs} {incr i} { for {set i 1} {$i <= $maxpcs} {incr i} {
set name "mypc${i}" set name "mypc${i}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment