summaryrefslogtreecommitdiff
path: root/user/tlp/tlp.post-upgrade
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2020-03-03 19:21:05 -0600
committerMax Rees <maxcrees@me.com>2020-03-17 00:32:05 -0500
commitd2b9d4e2ab2fca5ef26632b00a855b8e72757b80 (patch)
tree369021ea613f92b65f5e83b6183f13134fe3b407 /user/tlp/tlp.post-upgrade
parent02084aa19f020997dd27337b36d63e24c74ec7cd (diff)
downloadpackages-d2b9d4e2ab2fca5ef26632b00a855b8e72757b80.tar.gz
packages-d2b9d4e2ab2fca5ef26632b00a855b8e72757b80.tar.bz2
packages-d2b9d4e2ab2fca5ef26632b00a855b8e72757b80.tar.xz
packages-d2b9d4e2ab2fca5ef26632b00a855b8e72757b80.zip
user/tlp: bump to 1.3.1
Diffstat (limited to 'user/tlp/tlp.post-upgrade')
-rw-r--r--user/tlp/tlp.post-upgrade14
1 files changed, 14 insertions, 0 deletions
diff --git a/user/tlp/tlp.post-upgrade b/user/tlp/tlp.post-upgrade
new file mode 100644
index 000000000..6adf68850
--- /dev/null
+++ b/user/tlp/tlp.post-upgrade
@@ -0,0 +1,14 @@
+#!/bin/sh
+ver_new="$1"
+ver_old="$2"
+
+if [ "$(apk version -t "$ver_old" "1.3.1")" = "<" ]; then
+ cat >&2 <<-EOF
+ *
+ * tlp has moved its configuration from '/etc/default/tlp'
+ * to '/etc/tlp.conf' and '/etc/tlp.d'. Additionally,
+ * these configuration files are now parsed instead of
+ * executed via the shell, so expansions will no longer work.
+ *
+ EOF
+fi