pax_global_header00006660000000000000000000000064122273354670014525gustar00rootroot0000000000000052 comment=efe580c7cd38d4204c0a485fc06fd822c4e55512 installer-feature-powerbutton-stage3-0.2.1/000075500000000000000000000000001222733546700207235ustar00rootroot00000000000000installer-feature-powerbutton-stage3-0.2.1/.gear-rules000064400000000000000000000000071222733546700227670ustar00rootroot00000000000000tar: . installer-feature-powerbutton-stage3-0.2.1/08-powerbutton000075500000000000000000000011461222733546700234700ustar00rootroot00000000000000#!/bin/sh -efu a= . install2-init-functions # /proc/acpi indicates present ACPI support (in installer too) if [ ! -d /proc/acpi/ ]; then [ -x $destdir/etc/init.d/apmd ] && exec_chroot chkconfig apmd on ||: exit 0 fi # provide kernel interface for ACPI power button grep -qsx button $destdir/etc/modules || echo button >> $destdir/etc/modules # is powersaved starting? if yes, it will (re)start acpid [ -x $destdir/etc/init.d/powersaved ] && exec_chroot chkconfig --list powersaved |grep -qs '[345]:on' && ACPID=off || ACPID=on [ -x $destdir/etc/init.d/acpid ] && exec_chroot chkconfig acpid "$ACPID" ||: installer-feature-powerbutton-stage3-0.2.1/installer-feature-powerbutton-stage3.spec000064400000000000000000000017131222733546700310010ustar00rootroot00000000000000Name: installer-feature-powerbutton-stage3 Version: 0.2.1 Release: alt1 Summary: Arrange for power button to work as expected License: GPL Group: System/Configuration/Other Url: http://www.altlinux.org/Installer/beans Source: %name-%version.tar Packager: Michael Shigorin BuildArch: noarch %description This package sets up APM or ACPI power button actions so that pressing it would result in system shutdown. %prep %setup %install %define hookdir %_datadir/install2/postinstall.d mkdir -p %buildroot%hookdir install -pm755 08-powerbutton %buildroot%hookdir/ %files %hookdir/* %changelog * Wed Oct 16 2013 Michael Shigorin 0.2.1-alt1 - installer-common-stage3 is really not needed here (it pulls alterator-browser-qt with friends too) * Fri Apr 10 2009 Dmitry V. Levin 0.2-alt1 - Ported from stage2 to stage3. * Tue Aug 12 2008 Michael Shigorin 0.1-alt1 - init with installer-sdk