aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorKeve Müller <kevemueller@users.noreply.github.com>2024-10-27 13:09:24 +0000
committerWarner Losh <imp@FreeBSD.org>2025-01-24 19:40:33 +0000
commit3c61bbebc4166ca209b9becfd1529298bac6ed66 (patch)
tree8eafd03dd9f87aa7b88e5ed1473286f3e3b6adbb /libexec
parentd726bc286325dd7093b83c6ebcbaa768c687d825 (diff)
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rc/rc.initdiskless5
1 files changed, 4 insertions, 1 deletions
diff --git a/libexec/rc/rc.initdiskless b/libexec/rc/rc.initdiskless
index a4c6c613b85a..3b66a3c4928a 100644
--- a/libexec/rc/rc.initdiskless
+++ b/libexec/rc/rc.initdiskless
@@ -174,7 +174,10 @@ log() {
chkerr() {
lastitem () ( n=$(($# - 1)) ; shift $n ; echo $1 )
mountpoint="$(lastitem $2)"
- [ -r $mountpoint/remount_optional ] && ( echo "$2 failed: ignoring due to remount_optional" ; return )
+ if [ -r $mountpoint/remount_optional ]; then
+ echo "$2 failed: ignoring due to remount_optional"
+ return
+ fi
case $1 in
0)
;;