summaryrefslogtreecommitdiff
path: root/system/thermald/doinst.sh
diff options
context:
space:
mode:
authorAaditya Bagga <aaditya_gnulinux@zoho.com>2017-02-26 13:08:39 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-02-26 13:08:39 +0700
commit44889319aa503ac6a4784997e4d77b2f96ed0efc (patch)
tree611e126b716a10af1b13647bd7fabb3359ee062e /system/thermald/doinst.sh
parentbdb0f08846f0edd306b2da3238ba7aa5d45610f4 (diff)
downloadslackbuilds-44889319aa503ac6a4784997e4d77b2f96ed0efc.tar.gz
system/thermald: Added (Linux Thermal Daemon).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/thermald/doinst.sh')
-rw-r--r--system/thermald/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/thermald/doinst.sh b/system/thermald/doinst.sh
new file mode 100644
index 0000000000..120570687d
--- /dev/null
+++ b/system/thermald/doinst.sh
@@ -0,0 +1,15 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/thermald/thermal-conf.xml.new
+config etc/thermald/thermal-cpu-cdev-order.xml.new