Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
02f3b381
Commit
02f3b381
authored
Dec 04, 2000
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hook in the os_setup script.
parent
1eb884ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
tbsetup/tbrun.tcl
tbsetup/tbrun.tcl
+10
-1
No files found.
tbsetup/tbrun.tcl
View file @
02f3b381
...
...
@@ -44,6 +44,7 @@ set libir "$scriptdir/ir/libir.tcl"
set ir2ifc
"
$scriptdir
/ir2ifc"
set ifcboot
"
$scriptdir
/ifc_setup"
set delay_setup
"
$scriptdir
/delay_setup"
set os_setup
"
$scriptdir
/os_setup"
source $libir
namespace import TB_LIBIR::ir
...
...
@@ -54,6 +55,8 @@ if {$argc != 3} {
}
# ignore pid and eid for the moment.
set pid
[
lindex $argv 0
]
set eid
[
lindex $argv 1
]
set irFile
[
lindex $argv 2
]
set t
[
split $irFile .
]
set prefix
[
join
[
lrange $t 0
[
expr
[
llength $t
]
- 2
]]
.
]
...
...
@@ -113,7 +116,13 @@ readfifo $tmpioFP "SNMPIT: "
#
}
outs
"PLACEHOLDER - Copying disk images."
outs
"PLACEHOLDER - Booting for the first time."
outs
"Resetting OS and rebooting."
if
{[
catch
"exec
$os
_setup
$pid
$eid
$ir
File >@
$log
Fp 2>@
$log
Fp"
err
]}
{
outs stderr
"Error running
$os
_setup. (
$err
)"
exit 1
}
outs
"PLACEHOLDER - Verifying OS functionality."
# XXX - This should only be done for linux/freebsd OSs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment