Benjamin Herrenschmidt wrote:
I found this through Rich Johnson, the maintainer of the "autoboot"
utility...... and I've just pulled plug on one of our G4 servers and lo!
the server_mode=1 survived the reboot.  It also remains after a
conventional reboot.


Yes, it's disabled if you do a shutdown tho.


Yes, there is the package "powerpc-utils" and the command "autoboot" :

AUTOBOOT(8)
NAME
 autoboot - tool for setting/resetting servermode booting of PowerMacs
SYNOPSIS
       autoboot [-v] on
       autoboot [-v] off
       autoboot -V
DESCRIPTION
autoboot sets/clears Server Mode in the hardware PMU. When set the machine will automatically boot as soon as power is restored after an outage. When cleared the machine must be manually booted.

autoboot sets the Server Mode for the current OS session only. For continued, unattended operation autoboot should be invoked during system startup.

Normal shutdown (init 0) and scheduled boots (bootsched) also reset Server Mode.


I create the init script "/etc/init.d/autoboot" :

#! /bin/sh
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
set -e
case "$1" in
  start|restart|force-reload|reload)
        echo -n "Autoboot..."
        /sbin/autoboot -v on
        echo
        ;;
  stop)
        exit 0
        ;;
  *)
        N=/etc/init.d/autoboot
        echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
        exit 1
        ;;
esac
exit 0


And the symbolic link "/etc/rcS.d/S60autoboot".

Regards.
--
==============================================
|              FREDERIC MASSOT               |
|     http://www.juliana-multimedia.com      |
|   mailto:[EMAIL PROTECTED]   |
===========================Debian=GNU/Linux===


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to