Date: Mon, 24 Dec 2001 12:49:03 -0500 (EST) From: Robert Watson <rwatson@FreeBSD.org> To: arch@FreeBSD.org Subject: sysctl (fwd) Message-ID: <Pine.NEB.3.96L.1011224124733.29753I-100000@fledge.watson.org>
next in thread | raw e-mail | index | archive | help
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 <Unix@henoc.com>
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: <Host to PCI bridge> on motherboard
<118>unknown oid 'compat.linux.osname'
<118>unknown oid 'compat.linux.osrelease'
<118> hostname
<118> media: Ethernet autoselect (100baseTX <full-duplex>)
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1011224124733.29753I-100000>
