laptop-mode: added runit service

This commit is contained in:
Andrea Brancaleoni 2015-05-01 22:59:22 +02:00
parent 899f2acf29
commit d6a5998789
3 changed files with 8 additions and 2 deletions
srcpkgs/laptop-mode
files/laptop-mode
template

View File

@ -0,0 +1,3 @@
#/bin/sh
laptop_mode init stop
rm -f /var/run/laptop-mode-tools/enabled

View File

@ -0,0 +1,3 @@
#!/bin/sh
laptop_mode init auto
exec chpst -b laptop-mode pause

View File

@ -1,7 +1,7 @@
# Template file for 'laptop-mode'
pkgname=laptop-mode
version=1.66
revision=1
revision=2
noarch=yes
wrksrc="${pkgname}-tools_${version}"
short_desc="Laptop power saving package for Linux systems"
@ -26,7 +26,6 @@ conf_files="
/etc/laptop-mode/conf.d/intel-hda-powersave.conf
/etc/laptop-mode/conf.d/configuration-file-control.conf
/etc/laptop-mode/conf.d/bluetooth.conf
/etc/laptop-mode/conf.d/usb-autosuspend.conf
/etc/laptop-mode/conf.d/wireless-ipw-power.conf
/etc/laptop-mode/conf.d/start-stop-programs.conf
/etc/laptop-mode/conf.d/ac97-powersave.conf
@ -45,4 +44,5 @@ do_install() {
sed -i 's|/sbin/udevadm|/usr/bin/udevadm|g' usr/share/laptop-mode-tools/modules/hdparm
DESTDIR=${DESTDIR} ACPI=force APM=disabled INIT_D=none \
INSTALL=install LIB_D=/usr/lib MAN_D=/usr/share/man $wrksrc/install.sh
vsv laptop-mode
}