38 lines · 579 B · Text
RawDownload
#!/bin/rc rforkscorefile=/shr/9fat/scorenameskey=xzxzxzxzport=20019 while(~ $1 -*){	switch($1){	case -k		key=$2		shift	case -p		port=$2		shift	case -v		scorefile=$2		shift	}	shift} . $scorefile rfork Vnamefossil $$1sleep 1mv /srv/ramfossil /srv/boothub -b $1.$pidsleep 1mount /srv/$1.$pid /n/hecho 'auth/newns' >>/n/h/io0sleep 1echo 'startsrvs' >>/n/h/io0sleep 1mount -b /srv/factotum /mntecho 'key proto=dp9ik user='^$user^' dom=ramns !password='^$key >/mnt/factotum/ctlecho 'aux/listen1 -tv tcp!*!'^$port^' /rc/bin/service/tcp17019' >>/n/h/io0