#!/bin/rc
rfork en
if(test -x /386/9pcf){
os=Plan9
homeroot=/usr
EMU='-r'^$home^'/inferno -c0 -g1024x768'
exec $home/inferno/$os/386/bin/emu $* /dis/sh.dis -c 'bind ''#U*/usr'' /usr; bind ''#U*/net'' /net; bind -b /icons/tinytk /icons/tk; /dis/wm/qwm -t sh /dis/wm/sh.dis -t charon /dis/charon.dis -t tetris /dis/wm/tetris.dis'
}
if not{
os=OpenBSD
homeroot=/home
user=$USER
hostname=`{hostname -s}
switch($hostname) {
case pham
EMU='-r'^$home^'/inferno -c0 -g1920x1080'
case l1
EMU='-r'^$home^'/inferno -c0 -g1024x768'
case *
EMU='-r'^$home^'/inferno -c0 -g1280x1024'
}
exec $home/inferno/$os/386/bin/emu $* /dis/sh.dis -c 'bind ''#U*/home'' /usr; bind -b /icons/tinytk /icons/tk; /dis/wm/qwm -t sh /dis/wm/sh.dis -t charon /dis/charon.dis -t tetris /dis/wm/tetris.dis'
}
|