aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2026-06-05 15:53:29 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2026-06-05 15:53:29 +0000
commitb5a96894f67a92f78f0641763eff1e0a46f2e036 (patch)
tree981f090a2abc8c33cdd4f5c02551acae5b7bf0e0 /libexec
parentddf6fad0295aa92af5eed2a4b2fa0bd02f47d94d (diff)
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rc/rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libexec/rc/rc b/libexec/rc/rc
index db3c3e20ab44..75eef606b7fe 100644
--- a/libexec/rc/rc
+++ b/libexec/rc/rc
@@ -46,6 +46,11 @@ HOME=/
PATH=/sbin:/bin:/usr/sbin:/usr/bin
export HOME PATH
+if ! [ -c /dev/null ]; then
+ echo "/dev is not populated" >&2
+ exit 1
+fi
+
if [ "$1" = autoboot ]; then
autoboot=yes
_boot="faststart"