aboutsummaryrefslogtreecommitdiff
path: root/init.d/localmount.in
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-03-25 18:29:37 -0500
committerWilliam Hubbs <williamh@gentoo.org>2012-03-25 18:38:13 -0500
commit533813dda03d4b3cd1685f4063e314ae0539267e (patch)
treeb58fbc50bc121cbcb49867a0768bbc0215abb110 /init.d/localmount.in
parent6ac182c9cab4bde83767ea82ba2013cf126d55de (diff)
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
Diffstat (limited to 'init.d/localmount.in')
-rw-r--r--init.d/localmount.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.d/localmount.in b/init.d/localmount.in
index 158bafcd..de0b08b3 100644
--- a/init.d/localmount.in
+++ b/init.d/localmount.in
@@ -33,6 +33,7 @@ start()
stop()
{
+ yesno $RC_GOINGDOWN || return 0
# We never unmount / or /dev or $RC_SVCDIR
# Bug 381783