about summary refs log tree commit diff
path: root/pkgs/os-specific/bsd/freebsd/patches/14.0/rc-user.patch
blob: 27e8f9a13f211d7f3ad20eaeefbad3bebb34244d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/libexec/rc/rc b/libexec/rc/rc
index 0ea61a4b2c0a..d9bfb228224c 100644
--- a/libexec/rc/rc
+++ b/libexec/rc/rc
@@ -87,6 +87,12 @@ if ! [ -e ${firstboot_sentinel} ]; then
 	skip_firstboot="-s firstboot"
 fi
 
+if [ -z "$USER_LOGIN" ]; then
+        skip="$skip -s user"
+else
+        skip="$skip -k user"
+fi
+
 # Do a first pass to get everything up to $early_late_divider so that
 # we can do a second pass that includes $local_startup directories
 #