code: purgatorio

ref: 42dfac6916ebbdac65cbec8b3e1a80c3ee41423c
dir: /lib/sh/profile/

View raw version
# emu sh initialisation here
load std

user = `{cat /dev/user}
home = /usr/^$user

bind /locale/US_Central /locale/timezone

# Fix creation annoyance for hosted inferno
# this might be relevant for native, but is untested
bind -c '#U'/dis /dis

# Set up environment
bind -b '#s' /chan

# Networking
bind -b '#scs' /net
mount {mntgen} /n

# Run the user's profile
cd
and {ftest -d tmp}		{bind -c tmp /tmp}
and {ftest -e namespace}	{nsbuild}
and {ftest -e lib/profile}	{run lib/profile}