1
0

startwin 776 B

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