[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PowerMac G4 : how to enable the server mode ?



On (28/11/06 10:56), Frédéric Massot wrote:
> 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".

Cool!

Thanks

Clive

-- 
www.clivemenzies.co.uk ...
...strategies for business




Reply to: