summarylogtreecommitdiffstats
path: root/tlp-arch.patch
diff options
context:
space:
mode:
authorAaditya Bagga2015-06-09 08:24:08 +0530
committerAaditya Bagga2015-06-09 08:24:08 +0530
commitc438af0d387a46baa96b2860847152a70b1b3aa7 (patch)
tree51bd139c6faec0d991617c7fdb91a7c4ffe487b1 /tlp-arch.patch
downloadaur-c438af0d387a46baa96b2860847152a70b1b3aa7.tar.gz
tlp-pmu: initial commit
Diffstat (limited to 'tlp-arch.patch')
-rw-r--r--tlp-arch.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/tlp-arch.patch b/tlp-arch.patch
new file mode 100644
index 000000000000..6f98fc863314
--- /dev/null
+++ b/tlp-arch.patch
@@ -0,0 +1,47 @@
+diff -rupN TLP-0.7.orig/Makefile TLP-0.7/Makefile
+--- TLP-0.7.orig/Makefile 2015-02-24 10:41:23.600434433 +0100
++++ TLP-0.7/Makefile 2015-02-24 10:45:59.877307094 +0100
+@@ -67,7 +67,7 @@ endif
+ install -D -m 644 thinkpad-radiosw $(_ACPI)/events/thinkpad-radiosw
+ install -m 755 thinkpad-radiosw.sh $(_ACPI)/
+ ifneq ($(TLP_NO_BASHCOMP),1)
+- install -D -m 644 tlp.bash_completion $(DESTDIR)/etc/bash_completion.d/tlp
++ install -D -m 644 tlp.bash_completion $(DESTDIR)/usr/share/bash-completion/completions/tlp
+ endif
+
+ install-rdw:
+@@ -102,7 +102,7 @@ uninstall-tlp:
+ rm -f $(_PLIB)/sleep.d/49tlp
+ rm $(_ACPI)/events/thinkpad-radiosw
+ rm $(_ACPI)/thinkpad-radiosw.sh
+- rm -f $(DESTDIR)/etc/bash_completion.d/tlp
++ rm -f $(DESTDIR)/usr/share/bash-completion/completions/tlp
+
+ uninstall-rdw:
+ # Package tlp-rdw
+diff -rupN TLP-0.7.orig/tlp.rules TLP-0.7/tlp.rules
+--- TLP-0.7.orig/tlp.rules 2015-02-24 10:41:23.600434433 +0100
++++ TLP-0.7/tlp.rules 2015-02-24 10:41:35.026696729 +0100
+@@ -4,7 +4,7 @@
+ # This software is licensed under the GPL v2 or later.
+
+ # handle change of power source ac/bat
+-ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", RUN+="/usr/sbin/tlp auto"
++ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", RUN+="/usr/bin/tlp auto"
+
+ # handle added usb devices (exclude subdevices via DRIVER=="USB")
+-ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", ENV{DEVTYPE}=="usb_device", RUN+="/lib/udev/tlp-usb-udev %p"
++ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", ENV{DEVTYPE}=="usb_device", RUN+="/usr/lib/udev/tlp-usb-udev %p"
+diff -rupN TLP-0.7.orig/tlp.service TLP-0.7/tlp.service
+--- TLP-0.7/tlp.init 2015-02-01 03:02:48.000000000 +0530
++++ TLP-0.7/tlp.init.new 2015-02-25 10:49:46.079992409 +0530
+@@ -17,7 +17,7 @@
+
+-. /lib/lsb/init-functions
++#. /lib/lsb/init-functions
+
+-TLP=/usr/sbin/tlp
++TLP=/usr/bin/tlp
+ [ -x $TLP ] || exit 0
+
+ case "$1" in