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
1651abb0
Commit
1651abb0
authored
Apr 26, 2011
by
Weibin Sun
Browse files
Merge remote branch 'central/master'
parents
96016751
a493292c
Changes
4
Hide whitespace changes
Inline
Side-by-side
tmcd/common/config/rc.config
View file @
1651abb0
...
...
@@ -164,7 +164,7 @@ sub doaction($@)
next
if
(!-
x
"$BINDIR/rc/$script"
);
runbootscript
(\%
manifest
,
"$BINDIR/rc"
,$
script
,$
what
,
"$optarg $bargs"
);
runbootscript
(\%
manifest
,
"$BINDIR/rc"
,$
script
,$
what
,
"$optarg $bargs
$what
"
);
}
}
...
...
tmcd/freebsd/nodetype
View file @
1651abb0
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-20
04
University of Utah and the Flux Group.
# Copyright (c) 2000-20
11
University of Utah and the Flux Group.
# All rights reserved.
#
.
/etc/emulab/paths.sh
# Why am I trying to fix this script!?
if
[
-r
$BOOTDIR
/nodeid
-a
-r
$BOOTDIR
/ltpmap
]
;
then
nid
=
`
cat
$BOOTDIR
/nodeid
`
nt
=
`
grep
$nid
$BOOTDIR
/ltpmap 2>/dev/null |
awk
"/^H/ { if (
\\
$3
==
\"
$nid
\"
) print
\\
$5
}"
2>/dev/null
`
if
[
-n
"
$nt
"
]
;
then
echo
$nt
exit
0
fi
fi
# XXX for FreeBSD 5.x
if
[
!
-r
/var/run/dmesg.boot
]
;
then
dmesg
>
/var/run/dmesg.boot
...
...
@@ -56,3 +66,5 @@ elif [ $cpuspeed = "2500" ]; then
else
echo
pc
$cpuspeed
;
fi
exit
0
tmcd/freebsd/rc.healthd
View file @
1651abb0
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-20
02, 2004
University of Utah and the Flux Group.
# Copyright (c) 2000-20
11
University of Utah and the Flux Group.
# All rights reserved.
#
.
/etc/emulab/paths.sh
...
...
@@ -20,8 +20,8 @@ case "$1" in
#
# Not supported
#
echo
"
H
ealth monitoring not supported on nodetype:
$NODETYPE
"
exit
1
echo
"
WARNING: h
ealth monitoring not supported on nodetype:
$NODETYPE
"
exit
0
;;
esac
...
...
tmcd/linux/nodetype
View file @
1651abb0
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-20
04
University of Utah and the Flux Group.
# Copyright (c) 2000-20
11
University of Utah and the Flux Group.
# All rights reserved.
#
.
/etc/emulab/paths.sh
# Why am I trying to fix this script!?
if
[
-r
$BOOTDIR
/nodeid
-a
-r
$BOOTDIR
/ltpmap
]
;
then
nid
=
`
cat
$BOOTDIR
/nodeid
`
nt
=
`
grep
$nid
$BOOTDIR
/ltpmap 2>/dev/null |
awk
"/^H/ { if (
\\
$3
==
\"
$nid
\"
) print
\\
$5
}"
2>/dev/null
`
if
[
-n
"
$nt
"
]
;
then
echo
$nt
exit
0
fi
fi
if
[
-x
$BINDIR
/cpuspeed.awk
]
;
then
cpuspeed
=
`
$BINDIR
/cpuspeed.awk /proc/cpuinfo
`
;
else
...
...
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