Charles Forsyth20080430-1200e1164dc18 years agoHistory
29 lines · 481 B · Text
RawDownload
#!/bin/sh usage(){	echo 'usage: startslave [-r infernoroot] [configfile]' >&2	exit 1} root=/grid/infernocase $1 in-r)	case $2 in	"")	usage;;	*)	root="$2";;	esac	shift 2 ;;esac BIN=$root/Linux/386/binPATH=$BIN:$PATH export PATH while :do	if test -x $BIN/newemu	then		mv $BIN/newemu $BIN/emu || exit 1	fi	nice -19 emu -r$root /dis/sh.dis -c \		'ndb/cs; /grid/scripts/Inferno/worker $*' "$@" 	sleep 5		# if we're given an invalid emu, don't spin horribly.done