/[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 2090 Revision 2091
127 127
128# Try to remove any dm-crypt mappings 128# Try to remove any dm-crypt mappings
129stop_addon dm-crypt 129stop_addon dm-crypt
130 130
131# Stop LVM, etc 131# Stop LVM, etc
132stop_volumes 132for x in $(reverse_list ${RC_VOLUME_ORDER}) ; do
133 stop_addon "${x}"
134done
133 135
134# This is a function because its used twice below 136# This is a function because its used twice below
135ups_kill_power() { 137ups_kill_power() {
136 local UPS_CTL UPS_POWERDOWN 138 local UPS_CTL UPS_POWERDOWN
137 if [[ -f /etc/killpower ]] ; then 139 if [[ -f /etc/killpower ]] ; then
180 [[ ${retval} -ne 0 ]] && killall5 -9 &>/dev/null 182 [[ ${retval} -ne 0 ]] && killall5 -9 &>/dev/null
181 183
182 return ${retval} 184 return ${retval}
183} 185}
184 186
185# Remount unionfs branches as readonly
186stop_addon unionfs
187
188# Since we use `mount` in mount_readonly(), but we parse /proc/mounts, we 187# Since we use `mount` in mount_readonly(), but we parse /proc/mounts, we
189# have to make sure our /etc/mtab and /proc/mounts agree 188# have to make sure our /etc/mtab and /proc/mounts agree
190cp /proc/mounts /etc/mtab &>/dev/null 189cp /proc/mounts /etc/mtab &>/dev/null
191ebegin "Remounting remaining filesystems readonly" 190ebegin "Remounting remaining filesystems readonly"
192mount_worked=0 191mount_worked=0

Legend:
Removed from v.2090  
changed lines
  Added in v.2091

  ViewVC Help
Powered by ViewVC 1.1.20