/[baselayout]/branches/baselayout-1_12/init.d/halt.sh
Gentoo

Diff of /branches/baselayout-1_12/init.d/halt.sh

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

Revision 1480 Revision 1481
146 continue 146 continue
147 fi 147 fi
148 148
149 x=${x//\\040/ } 149 x=${x//\\040/ }
150 if ! umount "${x}" &>/dev/null; then 150 if ! umount "${x}" &>/dev/null; then
151 # If its /usr, just ignore it .. we will mount it ro below ...
152 # This is to prevent killing bash on systems using locales.
153 [[ ${x} == "/usr" ]] && continue
151 # Kill processes still using this mount 154 # Kill processes still using this mount
152 /bin/fuser -k -m -9 "${x}" &>/dev/null 155 /bin/fuser -k -m -9 "${x}" &>/dev/null
153 sleep 2 156 sleep 2
154 # Now try to unmount it again ... 157 # Now try to unmount it again ...
155 umount -f -r "${x}" &>/dev/null 158 umount -f -r "${x}" &>/dev/null

Legend:
Removed from v.1480  
changed lines
  Added in v.1481

  ViewVC Help
Powered by ViewVC 1.1.20