/[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 2830 Revision 2831
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
44 fi 44 fi
45 cp -p "${RC_SVCDIR}"/deptree "${RC_SVCDIR}"/softlevel \ 45 cp -p "${RC_SVCDIR}"/deptree "${RC_SVCDIR}"/depconfig \
46 "${RC_SVCDIR}"/nettree "${RC_LIBDIR}" 2>/dev/null 46 "${RC_SVCDIR}"/softlevel "${RC_SVCDIR}"/nettree \
47 "${RC_LIBDIR}" 2>/dev/null
47 umount "${RC_SVCDIR}" 48 umount "${RC_SVCDIR}"
48 rm -rf "${RC_SVCDIR}"/* 49 rm -rf "${RC_SVCDIR}"/*
49 # Pipe errors to /dev/null as we may have future timestamps 50 # Pipe errors to /dev/null as we may have future timestamps
50 cp -p "${RC_LIBDIR}"/deptree "${RC_LIBDIR}"/softlevel \ 51 cp -p "${RC_LIBDIR}"/deptree "${RC_LIBDIR}"/depconfig \
51 "${RC_LIBDIR}"/nettree "${RC_SVCDIR}" 2>/dev/null 52 "${RC_LIBDIR}"/softlevel "${RC_LIBDIR}"/nettree \
53 "${RC_SVCDIR}" 2>/dev/null
52 rm -f "${RC_LIBDIR}"/deptree "${RC_LIBDIR}"/softlevel \ 54 rm -f "${RC_LIBDIR}"/deptree "${RC_LIBDIR}"/depconfig \
53 "${RC_LIBDIR}"/nettree 55 "${RC_LIBDIR}"/softlevel "${RC_LIBDIR}"/nettree
54 # Release the memory disk if we used it 56 # Release the memory disk if we used it
55 case "${mnt}" in 57 case "${mnt}" in
56 "/dev/md"[0-9]*) mdconfig -d -u "${mnt#/dev/md*}" ;; 58 "/dev/md"[0-9]*) mdconfig -d -u "${mnt#/dev/md*}" ;;
57 esac 59 esac
58fi 60fi

Legend:
Removed from v.2830  
changed lines
  Added in v.2831

  ViewVC Help
Powered by ViewVC 1.1.20