thermald: allow conf file

Check for and source a conf file in thermald's run file to allow custom
options.

Get rid of an excess 2>&1 redirection since the script starts with exec
2>&1 already.
This commit is contained in:
Evan Gates 2025-02-13 06:40:56 -07:00 committed by classabbyamp
parent 61001e8da7
commit c0eefb292f
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
sv check dbus >/dev/null || exit 1
exec thermald --no-daemon --dbus-enable 2>&1
[ -r conf ] && . ./conf
exec thermald ${OPTS:=--no-daemon --dbus-enable}

View File

@ -1,7 +1,7 @@
# Template file for 'thermald'
pkgname=thermald
version=2.5.8
revision=1
revision=2
archs="i686* x86_64*"
build_style=gnu-configure
hostmakedepends="automake pkg-config glib-devel gtk-doc autoconf-archive"