rc: Move stop_boot() from rc.d/fsck to rc.subr and improve it
authorAaron LI <aly@aaronly.me>
Fri, 21 Jun 2019 15:59:37 +0000 (23:59 +0800)
committerAaron LI <aly@aaronly.me>
Fri, 21 Jun 2019 15:59:37 +0000 (23:59 +0800)
commit6f37e8f4fe831d27172ba2edd4c2a231e05315bc
treed873c68db24e775013a8578a8a1c7cde7f2ad2cd
parent23591d78897896e07b2f78d2651c1b4d70a53ab4
rc: Move stop_boot() from rc.d/fsck to rc.subr and improve it

Move the stop_boot() function from rc.d/fsck to rc.subr, since we will
use it in other rc.d scripts.  This follows what FreeBSD does.

Improve the stop_boot() function by bringing in the FreeBSD's version.

Minor cleanups.
etc/rc.d/fsck
etc/rc.subr