#!/bin/rc { rfork en wdir=$1 if(~ $wsys /srv/*){ if(~ $#wpid 0) wpid=`{cat /dev/ppid} spec=($spec -pid $wpid) } if(~ $#wdir 0){ wdir=`{pwd} } if not { builtin cd $wdir } spec=($spec -cd $wdir) {unmount /mnt/acme /dev; unmount $wsys /dev} >[2]/dev/null if(mount $wsys /mnt/wsys 'new '$"spec){ bind -b /mnt/wsys /dev lc > /dev/cons label `{pwd|sed 's|'$home'/||'} rm /env/^(wdir wpid) exec rc /dev/cons >[2]/dev/cons exit exec } }&