Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
11db77e6
Commit
11db77e6
authored
Jan 14, 2002
by
Leigh B. Stoller
Browse files
Minor changes for frisbee.redux; the port and mcast addr are specified
as independent options (-m and -p).
parent
39ce0f83
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/freebsd/rc.frisbee
View file @
11db77e6
...
...
@@ -2,25 +2,25 @@
TMCC
=
/etc/testbed/tmcc
DISKDEV
=
/dev/rad0
# For testing on boss
#LOADINFO='ADDR=1.2.3.4:666 PART=42'
LOADINFO
=
`
$TMCC
loadinfo
`
ADDRESS
=
`
echo
$LOADINFO
|
awk
-F
=
'{ printf $2 }'
|
awk
-F
' '
'{ print $1 }'
`
PARTITION
=
`
echo
$LOADINFO
|
awk
-F
=
'{ printf $3 }'
`
# The address returned by 'loadinfo' has a colon seperating the multicast
# address and the port number, but frisbee needs them space-seperated
ADDRESS
=
`
echo
$ADDRESS
|
sed
's/:/ /g'
`
# For testing purposes.
#LOADINFO='ADDR=234.5.6.69:4444 PART=0'
ADDRESS
=
`
echo
$LOADINFO
|
awk
-F
=
'{ printf $2 }'
|
awk
-F
' '
'{ print $1 }'
`
PARTITION
=
`
echo
$LOADINFO
|
awk
-F
=
'{ printf $3 }'
`
if
[
x
"
$PARTITION
"
!=
x
]
&&
[
"
$PARTITION
"
!=
0
]
;
then
SLICE
=
"-s
$PARTITION
"
;
fi
if
[
x
"
$ADDRESS
"
!=
x
]
;
then
/bin/echo
"Running Frisbee: /etc/testbed/userfrisbee
$SLICE
$ADDRESS
$DISKDEV
"
;
/etc/testbed/userfrisbee
$SLICE
$ADDRESS
$DISKDEV
;
PORT
=
`
echo
$ADDRESS
|
awk
-F
:
'{ printf $2 }'
`
;
MCAST
=
`
echo
$ADDRESS
|
awk
-F
:
'{ printf $1 }'
`
;
MCASTADDR
=
"-m
$MCAST
-p
$PORT
"
;
/bin/echo
"Running /etc/testbed/frisbee
$SLICE
$MCASTADDR
$DISKDEV
"
;
/etc/testbed/frisbee
$SLICE
$MCASTADDR
$DISKDEV
;
/bin/echo
"Frisbee run finished"
;
$TMCC
reset
;
/sbin/reboot &
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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