76 lines · 1.4 KB · Text
RawDownload
#!/bin/rc user=`{cat /dev/user}home=/usr/$userif(test -f $home/lib/profile){	echo user directories already made	exit no}cd $homex='$'mkdir bin bin/rc bin/mips bin/386 bin/amd64 bin/power bin/arm bin/arm64 mkdir lib tmpchmod +t tmpbind -qc /n/other/usr/$user/tmp $home/tmpbind -c $home/tmp /tmpmail -cauth/cron -c cat > lib/profile <<!bind -qa $x^home/bin/rc /binbind -qa $x^home/bin/$x^cputype /binfont=/lib/font/bit/vga/unicode.fontswitch($x^service){case terminal	webcookies	webfs	plumber	echo -n accelerated > '#m/mousectl'	echo -n 'res 3' > '#m/mousectl'	prompt=('term% ' '	')	fn term%{ $x^* }	riocase cpu	bind /mnt/term/dev/cons /dev/cons	bind -q /mnt/term/dev/consctl /dev/consctl	>[2] /dev/null {		cp /dev/sysname /mnt/term/dev/label		if(wsys=`{cat /mnt/term/env/wsys} && ~ $x^#wsys 1) {			wsys=/mnt/term^$x^wsys		}		if not {			wsys=()		}	} 	bind -a /mnt/term/dev /dev	prompt=($x^"sysname'% ' '	')	fn $x^"sysname^%{ $x^* }	if(! test -e /mnt/term/dev/wsys){		# call from drawterm		if(test -e /mnt/term/dev/secstore){			auth/factotum -n			read -m /mnt/term/dev/secstore >/mnt/factotum/ctl			echo >/mnt/term/dev/secstore		}		if not			auth/factotum		webcookies		webfs		plumber		rio	}case con	prompt=('cpu% ' '	')}!cat > lib/plumbing <<!# to update: cp $$home/lib/plumbing /mnt/plumb/rules editor = sambrowser = mothra include basic ! . lib/profile

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t