aboutsummaryrefslogtreecommitdiff
path: root/sh.BSD/init.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'sh.BSD/init.sh.in')
-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