Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37765616
en ru br
Репозитории ALT
5.1: 0.1-alt1
4.1: 0.1-alt0.M41.1
4.0: 0.1-alt0.M40.1
www.altlinux.org/Changes

Группа :: Система/Настройка/Прочее
Пакет: installer-feature-powerbutton

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

installer-feature-powerbutton-0.1/000075500000000000000000000000001105034251700173625ustar00rootroot00000000000000installer-feature-powerbutton-0.1/Makefile000064400000000000000000000004121105034251700210170ustar00rootroot00000000000000install2_dir=$(datadir)/install2

install:
install -d $(install2_dir)
[ -d initinstall.d ] && cp -a initinstall.d $(install2_dir) ||:
[ -d preinstall.d ] && cp -a preinstall.d $(install2_dir) ||:
[ -d postinstall.d ] && cp -a postinstall.d $(install2_dir) ||:
installer-feature-powerbutton-0.1/postinstall.d/000075500000000000000000000000001105034251700221605ustar00rootroot00000000000000installer-feature-powerbutton-0.1/postinstall.d/08-powerbutton000075500000000000000000000011731105034251700247250ustar00rootroot00000000000000#!/bin/sh -efu
. install2-init-functions

# /proc/acpi indicates present ACPI support (in installer too)
[ -d /proc/acpi/ ] || {
[ -x $destdir/etc/init.d/apmd ] && run_chroot chkconfig apmd on
exit 0
}

# provide kernel interface for ACPI power button
grep -q ^button$ $destdir/etc/modules || echo button >> $destdir/etc/modules

# which one starts: acpid by default
ACPID=on

# is powersaved starting? if yes, it will (re)start acpid
[ -x $destdir/etc/init.d/powersaved ] \
&& run_chroot chkconfig --list powersaved \
| grep -q '[345]:on' \
&& ACPID=off

[ -x $destdir/etc/init.d/acpid ] && run_chroot chkconfig acpid "$ACPID" ||:
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin