aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.conf
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rc/rc.conf')
-rw-r--r--libexec/rc/rc.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf
index d502361eca37..bfa46bd343a6 100644
--- a/libexec/rc/rc.conf
+++ b/libexec/rc/rc.conf
@@ -21,6 +21,7 @@
##############################################################
# Set default value of _localbase if not previously set
+: ${_localbase:="$(/sbin/sysctl -n user.localbase 2> /dev/null)"}
: ${_localbase:="/usr/local"}
# rc_debug can't be set here without interferring with rc.subr's setting it