| … | |
… | |
| 33 | exit 0 |
33 | exit 0 |
| 34 | fi |
34 | fi |
| 35 | fi |
35 | fi |
| 36 | |
36 | |
| 37 | # If $svcdir is still mounted, preserve it if we can |
37 | # If $svcdir is still mounted, preserve it if we can |
| 38 | if mountinfo "${RC_SVCDIR}" >/dev/null && [ -w "${RC_LIBDIR}" ] ; then |
38 | if mountinfo -q "${RC_SVCDIR}" && [ -w "${RC_LIBDIR}" ] ; then |
| 39 | f_opts="-m -c" |
39 | f_opts="-m -c" |
| 40 | [ "${RC_UNAME}" = "Linux" ] && f_opts="-c" |
40 | [ "${RC_UNAME}" = "Linux" ] && f_opts="-c" |
| 41 | if [ -n "$(fuser ${f_opts} "${svcdir}" 2>/dev/null)" ] ; then |
41 | if [ -n "$(fuser ${f_opts} "${svcdir}" 2>/dev/null)" ] ; then |
| 42 | fuser -k ${f_opts} "${svcdir}" 1>/dev/null 2>/dev/null |
42 | fuser -k ${f_opts} "${svcdir}" 1>/dev/null 2>/dev/null |
| 43 | sleep 2 |
43 | sleep 2 |