From owner-freebsd-hackers Sat Sep 27 18:44:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA26175 for hackers-outgoing; Sat, 27 Sep 1997 18:44:49 -0700 (PDT) Received: from minor.stranger.com (stranger.vip.best.com [204.156.129.250]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA26163 for ; Sat, 27 Sep 1997 18:44:43 -0700 (PDT) Received: from dog.farm.org (dog.farm.org [207.111.140.47]) by minor.stranger.com (8.8.5/8.6.12) with ESMTP id SAA27389; Sat, 27 Sep 1997 18:51:57 -0700 (PDT) Received: (from dk@localhost) by dog.farm.org (8.7.5/dk#3) id SAA28124; Sat, 27 Sep 1997 18:46:44 -0700 (PDT) Date: Sat, 27 Sep 1997 18:46:44 -0700 (PDT) From: Dmitry Kohmanyuk Message-Id: <199709280146.SAA28124@dog.farm.org> To: mike@smith.net.au (Mike Smith) Cc: freebsd-hackers@freebsd.org Subject: Re: rc.sysctl? Newsgroups: cs-monolit.gated.lists.freebsd.hackers Organization: FARM Computing Association Reply-To: dk+@ua.net X-Newsreader: TIN [version 1.2 PL2] Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <199709260733.RAA00370@word.smith.net.au> you wrote: > You might want to consider a more generalised sysctl tweaking mechanism > , eg. one that consumed variables of the form 'sysctl_X' where X was a > monotonically increasing value starting with 0. You could handle these > early on in rc, just after rc.conf is sourced. This would still suffer > from the "sysctl is not in /sbin" problem for people using NFS for /usr. How about committing this?? # /usr/src/sbin/sysctl/Makefile DIR=${.CURDIR}/../../usr.sbin/sysctl CFLAGS+=-static NOMAN=yes .PATH: ${DIR} .include "${DIR}/Makefile" (tested, works, used; patch for /usr/src/sbin/Makefile is obvious) There are many things which can be done with sysctl and are potentially useful from single-user... say, if I need special IP options for NFS mounts, etc.?? # ls -la /sbin/sysctl -r-xr-xr-x 1 bin bin 57344 27 ÓÅÎ 18:43 /sbin/sysctl # ls -la /usr/sbin/sysctl -r-xr-xr-x 1 bin bin 12288 27 ÉÀÎ 19:55 /usr/sbin/sysctl # Please, anybody who wants to make life easier for diskless boxes, do it!