tlp: redirect stdout to stderr in the runit service to unclutter runit/2.
This commit is contained in:
parent
c51aac85f1
commit
94765f6992
2 changed files with 2 additions and 3 deletions
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
exec 1>&2
|
||||||
tlp init start || exit 1
|
tlp init start || exit 1
|
||||||
exec chpst -b tlp pause
|
exec chpst -b tlp pause
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'tlp'
|
# Template file for 'tlp'
|
||||||
pkgname=tlp
|
pkgname=tlp
|
||||||
version=0.5
|
version=0.5
|
||||||
revision=3
|
revision=4
|
||||||
hostmakedepends="git"
|
hostmakedepends="git"
|
||||||
depends="hdparm bash iw rfkill ethtool"
|
depends="hdparm bash iw rfkill ethtool"
|
||||||
conf_files="/etc/default/tlp"
|
conf_files="/etc/default/tlp"
|
||||||
|
@ -15,14 +15,12 @@ homepage="http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.ht
|
||||||
do_fetch() {
|
do_fetch() {
|
||||||
git clone -b${version} git://github.com/linrunner/TLP.git tlp-${version}
|
git clone -b${version} git://github.com/linrunner/TLP.git tlp-${version}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
sed -i -e 's|/lib/udev|/usr/lib/udev/|' Makefile
|
sed -i -e 's|/lib/udev|/usr/lib/udev/|' Makefile
|
||||||
sed -i -e 's|/usr/sbin/|/usr/bin|' Makefile
|
sed -i -e 's|/usr/sbin/|/usr/bin|' Makefile
|
||||||
sed -i -e 's|$(SBIN)|$(BIN)|' Makefile
|
sed -i -e 's|$(SBIN)|$(BIN)|' Makefile
|
||||||
sed -i -e 's|SBIN = $(DESTDIR)/usr/sbin||' Makefile
|
sed -i -e 's|SBIN = $(DESTDIR)/usr/sbin||' Makefile
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
make DESTDIR=${DESTDIR} install-tlp
|
make DESTDIR=${DESTDIR} install-tlp
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue