summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2017-12-22 12:32:41 +0200
committerAlon Bar-Lev <alonbl@gentoo.org>2017-12-22 12:33:31 +0200
commit4d33d6e63d5add27f56f5334cd7d72f63ac9a356 (patch)
tree1c9928a4ed613cad63999ea89b5dcb2d289c1180 /app-laptop
parentnet-news/quiterss: whitespace (diff)
downloadgentoo-4d33d6e63d5add27f56f5334cd7d72f63ac9a356.tar.gz
gentoo-4d33d6e63d5add27f56f5334cd7d72f63ac9a356.tar.bz2
gentoo-4d33d6e63d5add27f56f5334cd7d72f63ac9a356.zip
app-laptop/laptop-mode-tools: fix power-wireless iwconfig invocation
Package-Manager: Portage-2.3.13, Repoman-2.3.3 RepoMan-Options: --force
Diffstat (limited to 'app-laptop')
-rw-r--r--app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.71-wireless-power.patch27
-rw-r--r--app-laptop/laptop-mode-tools/laptop-mode-tools-1.71-r1.ebuild (renamed from app-laptop/laptop-mode-tools/laptop-mode-tools-1.71.ebuild)4
2 files changed, 31 insertions, 0 deletions
diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.71-wireless-power.patch b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.71-wireless-power.patch
new file mode 100644
index 00000000000..6d39d31e738
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.71-wireless-power.patch
@@ -0,0 +1,27 @@
+From 3644486a9ee4fda7887fa0ecf224e66c4d12a0d2 Mon Sep 17 00:00:00 2001
+From: Ritesh Raj Sarraf <rrs@debian.org>
+Date: Fri, 10 Mar 2017 14:37:03 +0530
+Subject: [PATCH] Fix correct program invocation
+
+Thanks: Mathias Rav
+Closes: https://github.com/rickysarraf/laptop-mode-tools/issues/93
+---
+ usr/share/laptop-mode-tools/modules/wireless-power | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/usr/share/laptop-mode-tools/modules/wireless-power b/usr/share/laptop-mode-tools/modules/wireless-power
+index bd8277d..8800a89 100755
+--- a/usr/share/laptop-mode-tools/modules/wireless-power
++++ b/usr/share/laptop-mode-tools/modules/wireless-power
+@@ -76,7 +76,7 @@ setPowerSave() {
+ if [ $ONOFF = "ON" ]; then
+ $IWCONFIG $IF txpower auto
+ else
+- $IW dev $IF txpower fixed
++ $IWCONFIG $IF txpower fixed
+ fi
+ fi
+ }
+--
+2.13.6
+
diff --git a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.71.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.71-r1.ebuild
index 76f2e8092a2..61e9fa4c5db 100644
--- a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.71.ebuild
+++ b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.71-r1.ebuild
@@ -29,6 +29,10 @@ DEPEND=""
S="${WORKDIR}/${MY_P}"
+PATCHES=(
+ "${FILESDIR}/${P}-wireless-power.patch"
+)
+
src_prepare() {
default
# This should avoid conflict with pm-powersave wrt #327443 and #396703