9front - general discussion about 9front
 help / color / mirror / Atom feed
* dtest
@ 2012-04-24  3:09 sl
  0 siblings, 0 replies; only message in thread
From: sl @ 2012-04-24  3:09 UTC (permalink / raw)
  To: 9front

#!/bin/rc
if(~ $service cpu)
	bind -b '#S' /dev
if(~ $#2 1)
	sd=$2
if not
	sd=`{echo $bootargs|sed 's/^.*!//g'}
switch($1){
case -r
	cmd='tput <'$"sd
	echo $"cmd
	eval $"cmd
case -w
	cmd='tput -p </dev/zero >/tmp/dtest'
	echo $"cmd
	eval $"cmd
case *
	echo usage: dtest [-rw] >[1=2]
	exit usage
}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-24  3:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-24  3:09 dtest sl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).