CVSROOT:        /cvs
Module name:    src
Changes by:     na...@cvs.openbsd.org   2011/06/24 13:47:49

Modified files:
        etc            : sysctl.conf 
        etc/etc.landisk: sysctl.conf 
        etc/etc.loongson: sysctl.conf 
        etc/etc.palm   : sysctl.conf 
        etc/etc.sgi    : sysctl.conf 
        etc/etc.sparc64: sysctl.conf 
        etc/etc.zaurus : sysctl.conf 
        sbin/sysctl    : sysctl.8 
        share/man/man4 : acpibtn.4 
        share/man/man4/man4.landisk: power.4 
        share/man/man4/man4.sgi: power.4 
        share/man/man4/man4.sparc64: power.4 
        share/man/man4/man4.zaurus: zkbd.4 
        share/man/man7 : securelevel.7 
        sys/arch/arm/arm: arm32_machdep.c 
        sys/arch/arm/include: cpu.h 
        sys/arch/landisk/dev: power.c 
        sys/arch/landisk/include: cpu.h 
        sys/arch/landisk/landisk: machdep.c 
        sys/arch/loongson/loongson: machdep.c 
        sys/arch/mips64/include: cpu.h 
        sys/arch/octeon/octeon: machdep.c 
        sys/arch/sgi/dev: power.c 
        sys/arch/sgi/sgi: machdep.c 
        sys/arch/sparc64/dev: power.c rtc.c 
        sys/arch/sparc64/include: cpu.h 
        sys/arch/sparc64/sparc64: machdep.c 
        sys/arch/zaurus/dev: zaurus_kbd.c 
        sys/dev/acpi   : acpi.c 
        sys/dev/wscons : wskbd.c 
        sys/kern       : kern_sysctl.c 
        sys/sys        : sysctl.h 

Log message:
machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 and
i386.  Stop abusing it on other archs for controling a shutdown by
pressing the soft power button:

* Add a MI sysctl hw.allowpowerdown; if set to 1 (the default) it
allows a power button shutdown.
* Make acpi(4)/acpibtn(4) honor hw.allowpowerdown.
* Switch the various power button intercepts on landisk, sgi, sparc64
and zaurus over to hw.allowpowerdown.
* Garbage collect the machdep.kbdreset sysctl on all archs other than
amd64 and i386.

ok miod@

Reply via email to