|
Lines 126-131
Link Here
|
| 126 |
|
126 |
|
| 127 |
action "Unmounting proc filesystem:" umount -n /proc |
127 |
action "Unmounting proc filesystem:" umount -n /proc |
| 128 |
|
128 |
|
|
|
129 |
# Deactivate LVM groups |
| 130 |
VGCHANGE=/sbin/vgchange |
| 131 |
if [ -x "$VGCHANGE" -a -s /etc/lvmtab ]; then |
| 132 |
action "Attempting to deactivate LVM" "$VGCHANGE" -an |
| 133 |
message="The system is halted" |
| 134 |
command=/sbin/poweroff |
| 135 |
fi |
| 136 |
|
| 129 |
# See if this is a powerfail situation. |
137 |
# See if this is a powerfail situation. |
| 130 |
UPSCTL=/etc/apcupsd/apccontrol |
138 |
UPSCTL=/etc/apcupsd/apccontrol |
| 131 |
if [ -x "$UPSCTL" -a -f /etc/apcupsd/powerfail ]; then |
139 |
if [ -x "$UPSCTL" -a -f /etc/apcupsd/powerfail ]; then |