aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-03 15:57:09 +0000
committerRoy Marples <roy@marples.name>2008-03-03 15:57:09 +0000
commit43f3c5480b66d354e32b483c95efba1e1adc017e (patch)
tree7d830512720c90fe2e97fb8d2f1ee9fcec42b220
parent08e78bd15f3eff3f7f12e960990be02f33fc0c8a (diff)
Don't disable devd in prefix.
-rw-r--r--sh.BSD/init.sh.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/sh.BSD/init.sh.in b/sh.BSD/init.sh.in
index 3bc52507..8d08b0c4 100644
--- a/sh.BSD/init.sh.in
+++ b/sh.BSD/init.sh.in
@@ -42,6 +42,8 @@ mount_svcdir()
[ -r /etc/rc.conf ] && . /etc/rc.conf
# Disable devd until we need it
-[ "${RC_UNAME}" = "FreeBSD" ] && sysctl hw.bus.devctl_disable=1 >/dev/null
+if [ -z "${RC_SYS}" -a "${RC_UNAME}" = "FreeBSD" ]; then
+ sysctl hw.bus.devctl_disable=1 >/dev/null
+fi
. "${RC_LIBDIR}"/sh/init-common-post.sh