localmount: Only unmount local filesystems if we are shutting down

Make the stop function in localmount only unmount file systems when the
system is going down.

reported-by: Alexey Prokopchuk <alexpro@homelan.lg.ua>
X-Gentoo-Bug: 407167
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=407167
This commit is contained in:
William Hubbs 2012-03-25 18:29:37 -05:00
parent 6ac182c9ca
commit 533813dda0

View File

@ -33,6 +33,7 @@ start()
stop()
{
yesno $RC_GOINGDOWN || return 0
# We never unmount / or /dev or $RC_SVCDIR
# Bug 381783