shithub: rc

ref: c1a707427fbbb5129e467516fc671e976ee3e398
dir: /nn/

View raw version
#!/bin/rc -x
# 2025-06-25T20:10:48-04:00
fn gowebfs{
	ramfs -m /n/webfs &&
	webcookies -f /n/webfs/webcookies &&
	webfs -s webfs.$user.$pid -T 100000 -d >>[2]/n/webfs/webfs.err
}
fn nntp{ nntpfs -a news.eternal-september.org }
if(! test -f /mnt/factotum/ctl)
	auth/factotum
auth/secstore -s tcp!auth.inri.net!5356 -G factotum >/mnt/factotum/ctl
if(~ $1 -v){
	bind /net /n/net.orig &&
	sshnet telstar.bell-labs.co ||
	{ echo SORRY && exit }
}
gowebfs
if(~ $sysname deckard)
	bind / /n/fs
bind / /n/$sysname
plumber
echo go!