diff options
author | Roy Marples <roy@marples.name> | 2007-11-28 10:06:13 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-11-28 10:06:13 +0000 |
commit | 97f707db0d42e816b90bcd0a3dee25a197ae5ac0 (patch) | |
tree | 1a7255b42a0ee327af12a7330938f74dcc52acb0 /init.d/halt.sh | |
parent | 8a328b7408e888a88c5e81ac89c10e9d267709f7 (diff) |
FreeBSD-7 and NetBSD support tmpfs, so try and use this first.
Diffstat (limited to 'init.d/halt.sh')
-rwxr-xr-x | init.d/halt.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/init.d/halt.sh b/init.d/halt.sh index fb82db1c..c3f76f3b 100755 --- a/init.d/halt.sh +++ b/init.d/halt.sh @@ -58,7 +58,9 @@ if [ "${RC_SYS}" = "VPS" ]; then fi # If $svcdir is still mounted, preserve it if we can -if mountinfo -q "${RC_SVCDIR}" && [ -w "${RC_LIBDIR}" ] ; then + +mnt=$(mountinfo --node "${RC_SVCDIR}") +if [ -n "${mnt}" -a -w "${RC_LIBDIR}" ] ; then f_opts="-m -c" [ "${RC_UNAME}" = "Linux" ] && f_opts="-c" if [ -n "$(fuser ${f_opts} "${svcdir}" 2>/dev/null)" ] ; then |