begin_script APM "loading apm driver ..."
case "$REAL_MODE_POWEROFF" in
    yes)
	do_insmod apm realmode_power_off=1
	;;
    *)
	do_insmod apm
	;;
esac
case "$POWEROFF_ON_HALT" in
    yes)
    	rm -f /sbin/halt
	cat <<-EOF > /sbin/halt
		#!/bin/sh
		poweroff
EOF
	chmod +x /sbin/halt
	;;
    esac
end_script
