Merge pull request #1478 from thypon/laptopmode
laptop-mode: added runit service
This commit is contained in:
commit
583a6db4e3
|
@ -0,0 +1,3 @@
|
|||
#/bin/sh
|
||||
laptop_mode init stop
|
||||
rm -f /var/run/laptop-mode-tools/enabled
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
laptop_mode init auto
|
||||
exec chpst -b laptop-mode pause
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue