tlp: redirect stdout to stderr in the runit service to unclutter runit/2.

This commit is contained in:
Juan RP 2015-02-01 08:57:32 +01:00
parent c51aac85f1
commit 94765f6992
2 changed files with 2 additions and 3 deletions

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 1>&2
tlp init start || exit 1
exec chpst -b tlp pause

View file

@ -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