1#!/bin/rc 2 3fn time { date | sed 's/.........$//'} 4 5rm -f /srv/log 6 7if(~ $#* 2) { 8 wid=$1 9 ht=$2 10} 11if not { 12 scr=(`{cat /dev/draw/new >[2]/dev/null || status=''}) 13 wid=$scr(7) 14 ht=$scr(8) 15} 16 17if(test $ht -gt 800) 18 ht=800 19 20if(test $wid -gt 800) 21 wid=800 22 23statwid=`{hoc -e $wid^'*.2'} 24if(test $statwid -lt 180) 25 statwid=180 26if(test $statwid -gt 300) 27 statwid=300 28 29logwid=`{hoc -e $wid^-$statwid} 30if(test $logwid -gt 1000) 31 logwid=1000 32 33loght=`{hoc -e $ht^'*.25'} 34if(test $loght -lt 130) 35 loght=130 36 37textht=`{hoc -e $ht^-$loght} 38 39window 0,$textht,$statwid,$ht stats -lmisce 40window $statwid,$textht,^`{hoc -e $logwid+$statwid}^,$ht tailfsrv 41window 0,0,^`{hoc -e $logwid+$statwid}^,$textht inst/mainloop 42 43while(! test -f /srv/log) 44 sleep 1 45 46log `{time} Installation process started 47