diff options
| author | Keve Müller <kevemueller@users.noreply.github.com> | 2024-10-27 13:09:24 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2025-01-24 19:40:33 +0000 |
| commit | 3c61bbebc4166ca209b9becfd1529298bac6ed66 (patch) | |
| tree | 8eafd03dd9f87aa7b88e5ed1473286f3e3b6adbb /libexec | |
| parent | d726bc286325dd7093b83c6ebcbaa768c687d825 (diff) | |
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/rc/rc.initdiskless | 5 |
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) ;; |
