30 lines
362 B
Bash
Executable File
30 lines
362 B
Bash
Executable File
#! /bin/sh
|
|
|
|
email="$1"
|
|
|
|
if [ "x$email" = "x" ]; then
|
|
echo "usage: startup <email-address>" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
cat > /etc/nologin <<EOM
|
|
|
|
Running cache contention benchmarks... - $email
|
|
|
|
EOM
|
|
|
|
case `uname -m` in
|
|
IP27)
|
|
proc_filter="/^0$/d; /^1$/d"
|
|
;;
|
|
*)
|
|
proc_filter="/^0$/d"
|
|
;;
|
|
esac
|
|
|
|
for x in `mpadmin -U | sed "$proc_filter"`
|
|
do
|
|
mpadmin -I$x
|
|
mpadmin -D$x
|
|
done
|