View | Details | Raw Unified | Return to bug 3701
Collapse All | Expand All

(-)startup-0.8.2/rc.d/init.d/halt.orig (+7 lines)
Lines 134-139 Link Here
134
	command=/sbin/poweroff
134
	command=/sbin/poweroff
135
fi
135
fi
136
136
137
UPSCTL=/sbin/upsdrvctl
138
if [ -x "$UPSCTL" -a -f /etc/killpower ]; then
139
        action "Attempting to turn the UPS off:" "$UPSCTL" shutdown
140
        message="The system is halted"
141
        command=/sbin/poweroff
142
fi
143
137
if [ "$command" = /sbin/poweroff ]; then
144
if [ "$command" = /sbin/poweroff ]; then
138
	# Modprobe apm for automatic poweroff at ATX cases.
145
	# Modprobe apm for automatic poweroff at ATX cases.
139
	/sbin/modprobe apm >/dev/null 2>&1
146
	/sbin/modprobe apm >/dev/null 2>&1

Return to bug 3701