9front - general discussion about 9front
 help / color / mirror / Atom feed
From: sl@9front.org
To: 9front@googlegroups.com
Subject: dtest
Date: Tue, 24 Apr 2012 03:09:53 +0000	[thread overview]
Message-ID: <ba16fe4c1641e6994ad164bddf4f0c7a@sp.nv> (raw)

#!/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
}

                 reply	other threads:[~2012-04-24  3:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ba16fe4c1641e6994ad164bddf4f0c7a@sp.nv \
    --to=sl@9front.org \
    --cc=9front@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).