summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2011-01-07 10:59:22 +0000
committerjh <jh@FreeBSD.org>2011-01-07 10:59:22 +0000
commit89c67ba43c35b5c3e174f3c41f01a36f9ae45abd (patch)
treec4c1ceda71b5d618ac9eafe31cc99ab19cfaa22b /etc
parent5b6a140b26b988ce0197a3f0afc7f41b9779cdd2 (diff)
downloadFreeBSD-src-89c67ba43c35b5c3e174f3c41f01a36f9ae45abd.zip
FreeBSD-src-89c67ba43c35b5c3e174f3c41f01a36f9ae45abd.tar.gz
Warn if rules could not be read from a ruleset file. Now at least
something gets logged if the file has syntax errors. PR: conf/91342 Silence on: freebsd-rc
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.subr5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index 7a2545f..da1b198 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -1349,7 +1349,10 @@ devfs_init_rulesets()
return
fi
for file in $devfs_rulesets; do
- devfs_rulesets_from_file $file || return 1
+ if ! devfs_rulesets_from_file $file; then
+ warn "$_me: could not read rules from $file"
+ return 1
+ fi
done
devfs_rulesets_init=1
debug "$_me: devfs rulesets initialized"
OpenPOWER on IntegriCloud