diff --git a/srcpkgs/tlp/files/tlp/run b/srcpkgs/tlp/files/tlp/run index a0c3ac25b8..552c2e7211 100755 --- a/srcpkgs/tlp/files/tlp/run +++ b/srcpkgs/tlp/files/tlp/run @@ -1,3 +1,4 @@ #!/bin/sh +exec 1>&2 tlp init start || exit 1 exec chpst -b tlp pause diff --git a/srcpkgs/tlp/template b/srcpkgs/tlp/template index 219c4421d8..384164a47e 100644 --- a/srcpkgs/tlp/template +++ b/srcpkgs/tlp/template @@ -1,7 +1,7 @@ # Template file for 'tlp' pkgname=tlp version=0.5 -revision=3 +revision=4 hostmakedepends="git" depends="hdparm bash iw rfkill ethtool" conf_files="/etc/default/tlp" @@ -15,14 +15,12 @@ homepage="http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.ht do_fetch() { git clone -b${version} git://github.com/linrunner/TLP.git tlp-${version} } - do_build() { sed -i -e 's|/lib/udev|/usr/lib/udev/|' Makefile sed -i -e 's|/usr/sbin/|/usr/bin|' Makefile sed -i -e 's|$(SBIN)|$(BIN)|' Makefile sed -i -e 's|SBIN = $(DESTDIR)/usr/sbin||' Makefile } - do_install() { make DESTDIR=${DESTDIR} install-tlp