Fix last commit

This commit is contained in:
Roy Marples 2008-07-09 16:20:48 +00:00
parent b83108cd2e
commit 7183cb1b18
2 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ if [ "${RC_UNAME}" = "Linux" ]; then
done
[ -n "${fs}" ] && fs="^(${fs})$"
do_unmount "mount -n -o remount,ro" \
--skip-point-regex "^(/dev|/dev/.*|/proc|/proc/.*|/sys|/sys/.*)$" \
--skip-point-regex "${no_umounts_r}" \
${fs:+--skip-fstype-regex} ${fs} --nonetdev
eoutdent
eend $?

View File

@ -47,7 +47,7 @@ stop()
if [ "${RC_UNAME}" = "Linux" ]; then
no_umounts_r="${no_umounts_r}|/proc|/proc/.*|/sys|/sys/.*"
fi
no_umounts_r="^(${no_umounts})$"
no_umounts_r="^(${no_umounts_r})$"
# Flush all pending disk writes now
sync; sync
@ -76,7 +76,7 @@ stop()
fs="${fs}${fs:+|}${x}"
done
[ -n "${fs}" ] && fs="^(${fs})$"
do_unmount "umount" --skip-point-regex "${no_umounts}" \
do_unmount "umount" --skip-point-regex "${no_umounts_r}" \
${fs:+--skip-fstype-regex} ${fs} --nonetdev
eoutdent