From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.236.181.161 with SMTP id l21csp55340yhm; Tue, 1 May 2012 06:34:44 -0700 (PDT) Return-Path: <9front+bncCIfk-sO2AhDzzP_8BBoEjmZCnQ@googlegroups.com> Received-SPF: pass (google.com: domain of 9front+bncCIfk-sO2AhDzzP_8BBoEjmZCnQ@googlegroups.com designates 10.52.76.198 as permitted sender) client-ip=10.52.76.198; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 9front+bncCIfk-sO2AhDzzP_8BBoEjmZCnQ@googlegroups.com designates 10.52.76.198 as permitted sender) smtp.mail=9front+bncCIfk-sO2AhDzzP_8BBoEjmZCnQ@googlegroups.com; dkim=pass header.i=9front+bncCIfk-sO2AhDzzP_8BBoEjmZCnQ@googlegroups.com Received: from mr.google.com ([10.52.76.198]) by 10.52.76.198 with SMTP id m6mr7597043vdw.12.1335879283905 (num_hops = 1); Tue, 01 May 2012 06:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:date:from:to:subject:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; bh=ac555JC9S0+8vpRWRjCEQFrMA4jCa8FYPB8GSAS9tqg=; b=snUAVfbX1iP0UW3OnbVtPPl11zBIdd8/nmCYi9HykQZk//D3DmuvjS1USLsDr6WJ+F BPRpPBEfhGAPcaFIuzdjgkfRJLtOaLv1bRqetZDmPvbvwWhZJkxUGHdDbDwZmojkwgGD CESp/PqyJw5YXZNSlSY1EXtaS6JfSoQDWgEE0= Received: by 10.52.76.198 with SMTP id m6mr670570vdw.12.1335879283850; Tue, 01 May 2012 06:34:43 -0700 (PDT) X-BeenThere: 9front@googlegroups.com Received: by 10.52.185.71 with SMTP id fa7ls2237344vdc.5.gmail; Tue, 01 May 2012 06:34:43 -0700 (PDT) Received: by 10.52.32.66 with SMTP id g2mr39206192vdi.5.1335879283617; Tue, 01 May 2012 06:34:43 -0700 (PDT) Received: by 10.52.32.66 with SMTP id g2mr39206191vdi.5.1335879283608; Tue, 01 May 2012 06:34:43 -0700 (PDT) Received: from sp.nv ([68.179.132.47]) by gmr-mx.google.com with ESMTP id cb10si9806243vdb.2.2012.05.01.06.34.43; Tue, 01 May 2012 06:34:43 -0700 (PDT) Received-SPF: neutral (google.com: 68.179.132.47 is neither permitted nor denied by best guess record for domain of sl@9front.org) client-ip=68.179.132.47; Date: Tue, 1 May 2012 13:34:37 +0000 From: sl@9front.org To: 9front@googlegroups.com Subject: Re: rep Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Original-Sender: sl@9front.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 68.179.132.47 is neither permitted nor denied by best guess record for domain of sl@9front.org) smtp.mail=sl@9front.org Reply-To: 9front@googlegroups.com Precedence: list Mailing-list: list 9front@googlegroups.com; contact 9front+owners@googlegroups.com List-ID: <9front.googlegroups.com> X-Google-Group-Id: 831096995978 List-Post: , List-Help: , List-Archive: Sender: 9front@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit After cinap's mail and discussing possibilities on IRC, a revised version, renamed to sysinfo (see below). > instead of dumping plan9.ini, wich should be the same after > install anyway. dump the effective kernel parameters as this > will also catch manual entered bootargs: > > cd '#ec'; for(i in *){echo $i '=' `{cat $i}} This does make more sense, and would capture any changes to plan9.ini just as effectively. > if we dump ioalloc, also dump archctl, irqalloc: > > cat '#P/archctl' > cat '#P/irqalloc' > cat '#P/ioalloc' Added cat '#P/apm', just in case. > enumerated devices (optional, because alarm sucks): > > alarm 1 cat /dev/usbevent Leaving this out, for now. > we should dump the effective vga configuration instead of just > assuming vesa. > > cat '#v/vgactl' Keeping both, since the valid VESA modes of various video cards is an open question. -sl --- #!/bin/rc fn logprog{ echo '% '^$"* $* echo } echo '% cd ''#ec''; for(i in *){echo $i ''='' `{cat $i}}' cd '#ec'; for(i in *){echo $i '=' `{cat $i}} echo logprog cat '#P/archctl' logprog cat '#P/irqalloc' logprog cat '#P/ioalloc' logprog cat '#P/apm' logprog cat '#c/config' logprog cat '#c/swap' logprog cat '#c/sysstat' logprog cat '#c/kmesg' logprog pci -v logprog aux/icanhasmsi logprog aux/pcmcia logprog cat '#u/usb/ctl' logprog cat '#S/sdctl' for(i in `{ls /dev | grep -e 'sd[A-Z][0-9].*'}) logprog cat $i/ctl for(i in /net/ether*){ logprog cat $i/addr logprog cat $i/stats logprog cat $i/ifstats } logprog cat '#v/vgactl' echo '@{rfork n; aux/realemu; aux/vga -p}' @{rfork n; aux/realemu; aux/vga -p} logprog xd -x1 '#r/nvram' logprog cat /dev/audiostat logprog cat /dev/volume