code: 9ferno

ref: 600bbfe4aaa9ad0f73d8d73eef1b7670e5f7d3a3
dir: /lib/sh/profile/

View raw version
# emu sh initialisation here
load std

user = `{cat /dev/user}
home = /usr/^$user
pubgridreg = tcp!registry.9p.zone!registry

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
ndb/dns -r
ndb/cs
# bind -a '#scs' /net
mount {mntgen} /n
mount {mntgen} /mnt

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