diff options
| author | Warner Losh <imp@FreeBSD.org> | 2002-11-30 00:40:53 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2002-11-30 00:40:53 +0000 |
| commit | 406259c1331cd4ea96a6a2faf5463d898293d5ab (patch) | |
| tree | 09ba9b07c36b9450f88e1e247f7fd29415fada40 | |
| parent | b8001d2f1541603132dd77d116c7b4b8f2415a98 (diff) | |
Notes
| -rw-r--r-- | etc/rc.d/devd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc.d/devd b/etc/rc.d/devd index 7702c77bc7926..9636eaac4cba8 100644 --- a/etc/rc.d/devd +++ b/etc/rc.d/devd @@ -4,7 +4,7 @@ # # PROVIDE: devd -# REQUIRE: devfs +# BEFORE: disks # KEYWORD: FreeBSD . /etc/rc.subr @@ -15,3 +15,8 @@ command="/sbin/devd" load_rc_config $name run_rc_command "$1" + +# If devd is disabled, turn it off in the kernel to avoid memory leaks. +if ! checkyesno ${rcvar}; then + sysctl hw.bus.devctl_disable=1 +fi |
