From owner-freebsd-arch Mon Dec 24 9:49: 9 2001 Delivered-To: freebsd-arch@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id B6C2837B416 for ; Mon, 24 Dec 2001 09:49:04 -0800 (PST) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.6/8.11.5) with SMTP id fBOHn3D29854 for ; Mon, 24 Dec 2001 12:49:03 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Mon, 24 Dec 2001 12:49:03 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: arch@FreeBSD.org Subject: sysctl (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Another case where sysctls need to be set for a module, but sysctl.conf is processed before the module is loaded. Makes one almost tempted to have /etc/modules/linux.conf which would look something like: before_load { }; after_load { sysctl compat.linux.osname="FreeBSD"; sysctl compat.linux.osrelease="4.4-STABLE"; }; before_unload { }; after_unload { }; Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services ---------- Forwarded message ---------- Date: 23 Dec 2001 18:21:13 -0500 From: Roger Savard To: freebsd-stable@freebsd.org Subject: sysctl Hi, I usually use /etc/sysctl.conf to modify two parameters compat.linux.osname=FreeBSD compat.linux.osrelease=4.4-Stable The reason behind this is to be accounted for FreeBSD instead of Linux ... some day will have native freebsd code... I get this result now: %sysctl -a | grep os ... pcib0: on motherboard <118>unknown oid 'compat.linux.osname' <118>unknown oid 'compat.linux.osrelease' <118> hostname <118> media: Ethernet autoselect (100baseTX ) user.posix2_version: 199212 user.posix2_c_bind: 0 user.posix2_c_dev: 0 user.posix2_char_term: 0 user.posix2_fort_dev: 0 user.posix2_fort_run: 0 user.posix2_localedef: 0 user.posix2_sw_dev: 0 user.posix2_upe: 0 jail.set_hostname_allowed: 1 compat.linux.osname: Linux compat.linux.osrelease: 2.4.2 compat.linux.oss_version: 198144 No changes !! Thanks again. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message