From owner-freebsd-hackers Wed Jan 3 03:23:31 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id DAA00719 for hackers-outgoing; Wed, 3 Jan 1996 03:23:31 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id DAA00705 for ; Wed, 3 Jan 1996 03:23:22 -0800 (PST) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id VAA07492; Wed, 3 Jan 1996 21:53:16 +1030 From: Michael Smith Message-Id: <199601031123.VAA07492@genesis.atrad.adelaide.edu.au> Subject: Re: boot from sd1? To: phk@critter.tfs.com (Poul-Henning Kamp) Date: Wed, 3 Jan 1996 21:53:15 +1030 (CST) Cc: nox@jelal.hb.north.de, bde@zeta.org.au, hackers@freebsd.org In-Reply-To: <532.820656893@critter.tfs.com> from "Poul-Henning Kamp" at Jan 3, 96 09:14:53 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org Precedence: bulk Poul-Henning Kamp stands accused of saying: > > > Heyy... maybe this is a silly idea :) but what about adding the > > root device to the list of things configurable with -c? default (-1?) > > is whatever the boot code (bios) guessed like its now, if thats wrong > > (`cannot mount root') simply reboot with -c and tell the kernel where > > it really is. then write this back in dset -q... > > My plan was to get somebody to make a sysctl editor to go along with the > userconfig editor, and make it a sysctl variable :-) Ok, so I should know better than to open my big mouth, but Poul, if you can answer the following questions, I'll add sysctl variable support to userconfig() and visuserconfig() AQAP. My -current system at work just got turned into a wordprocessor, so I be a week or so in doing it 8( All of these are in the context of the userconfig() function: 1) How do I obtain a list of all of the sysctl variables? 2) How do I read the value of a sysctl variable? 3) How do I determine what is a safe value for a given sysctl variable? 4) How do I write the value of a sysctl variable? In the context of dset: 1) How do I write the default value of a sysctl variable? As far as answers are concerned, it's fair enough for you to say "XXX does it in the same context, go look at that". -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] "Who does BSD?" "We do Chucky, we do." [[