Don't unmount /bin,/sbin,/lib,/libexec in the very silly cases where they are not on /

This commit is contained in:
Roy Marples
2009-04-16 23:34:38 +00:00
parent ace0b9653b
commit 744a8bbb4a
2 changed files with 2 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ stop()
{
# We never unmount / or /dev or $RC_SVCDIR
local x= no_umounts_r="/|/dev|/dev/.*|${RC_SVCDIR}"
no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib|/libexec"
# RC_NO_UMOUNTS is an env var that can be set by plugins
OIFS=${IFS} SIFS=${IFS-y}
IFS=$IFS: