rc.d: Use stop_boot() function to really stop boot
authorAaron LI <aly@aaronly.me>
Fri, 21 Jun 2019 16:07:06 +0000 (00:07 +0800)
committerAaron LI <aly@aaronly.me>
Fri, 21 Jun 2019 16:07:06 +0000 (00:07 +0800)
commite13ee828096647df4f100b1fe311a8f091c6b419
treead482214ba531052fd87b155522cff0261699509
parent6f37e8f4fe831d27172ba2edd4c2a231e05315bc
rc.d: Use stop_boot() function to really stop boot

The rc.d scripts are executed in sub-shells, so the original 'exit'
would not stop the boot process.  Use the stop_boot() function in
rc.d/mountcritlocal and rc.d/root to really stop the boot process.

Obtained-from: FreeBSD
etc/rc.d/mountcritlocal
etc/rc.d/root