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
1e8832a9
Commit
1e8832a9
authored
Feb 20, 2004
by
Mike Hibler
Browse files
Mods to allow dhclient-exit-hooks to run in the frisbee MFS
(we want to record "myip" so we can use it in the frisbee command line)
parent
8fd99238
Changes
2
Hide whitespace changes
Inline
Side-by-side
tmcd/freebsd/dhclient-exit-hooks
View file @
1e8832a9
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
3
University of Utah and the Flux Group.
# Copyright (c) 2000-200
4
University of Utah and the Flux Group.
# All rights reserved.
#
.
/etc/emulab/paths.sh
...
...
@@ -20,9 +20,13 @@ fi
#
# See if the Testbed configuration software wants to change the hostname.
# Installed into /etc.
# Installed into /etc. Note: frisbee MFS doesn't have perl and hence
# doesn't have this script.
#
$BINDIR
/sethostname
$new_domain_name
if
[
-x
$BINDIR
/sethostname
]
then
$BINDIR
/sethostname
$new_domain_name
fi
#
# Once we have an IP address, we can stop dhclient so that it doesn't get
...
...
tmcd/freebsd/rc.frisbee
View file @
1e8832a9
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
3
University of Utah and the Flux Group.
# Copyright (c) 2000-200
4
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -9,6 +9,7 @@ if [ -r /etc/emulab/paths.sh ]; then
.
/etc/emulab/paths.sh
else
BINDIR
=
/etc/testbed
BOOTDIR
=
/etc/testbed
fi
$BINDIR
/tmcc state RELOADSETUP
...
...
@@ -86,12 +87,17 @@ fi
if
[
x
"
$ADDRESS
"
!=
x
]
;
then
PORT
=
`
echo
$ADDRESS
|
awk
-F
:
'{ printf $2 }'
`
;
MCAST
=
`
echo
$ADDRESS
|
awk
-F
:
'{ printf $1 }'
`
;
if
[
-e
$BOOTDIR
/myip
]
;
then
MCASTIF
=
"-i
`
cat
$BOOTDIR
/myip
`
"
else
MCASTIF
=
""
fi
MCASTADDR
=
"-m
$MCAST
-p
$PORT
"
;
echo
"Running
$BINDIR
/frisbee
$LOADIP
$MEMARGS
$SLICE
$MCASTADDR
/dev/
$DISK
at
`
date
`
"
;
echo
"Running
$BINDIR
/frisbee
$LOADIP
$MEMARGS
$SLICE
$MCASTIF
$MCASTADDR
/dev/
$DISK
at
`
date
`
"
;
$BINDIR
/tmcc state RELOADING
;
$BINDIR
/frisbee
$LOADIP
$MEMARGS
$SLICE
$MCASTADDR
/dev/
$DISK
;
$BINDIR
/frisbee
$LOADIP
$MEMARGS
$SLICE
$MCASTIF
$MCASTADDR
/dev/
$DISK
;
case
$?
in
0
)
echo
"Frisbee run finished"
;
...
...
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