/[baselayout]/trunk/init.d/halt.sh
Gentoo

Diff of /trunk/init.d/halt.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2864 Revision 2865
33 exit 0 33 exit 0
34 fi 34 fi
35fi 35fi
36 36
37# If $svcdir is still mounted, preserve it if we can 37# If $svcdir is still mounted, preserve it if we can
38if mountinfo "${RC_SVCDIR}" >/dev/null && [ -w "${RC_LIBDIR}" ] ; then 38if 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

Legend:
Removed from v.2864  
changed lines
  Added in v.2865

  ViewVC Help
Powered by ViewVC 1.1.13