Gentoo Archives: gentoo-commits

From: "Alon Bar-Lev (alonbl)" <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-laptop/laptop-mode-tools/files: laptop-mode-tools-1.63-conf.patch
Date: Fri, 30 Aug 2013 18:16:33
Message-Id: 20130830181623.B01BA2004C@flycatcher.gentoo.org
1 alonbl 13/08/30 18:16:23
2
3 Added: laptop-mode-tools-1.63-conf.patch
4 Log:
5 Honor .conf files only, bug#482974, thanks to Steev Klimaszewski
6
7 (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
8
9 Revision Changes Path
10 1.1 app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.63-conf.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.63-conf.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.63-conf.patch?rev=1.1&content-type=text/plain
14
15 Index: laptop-mode-tools-1.63-conf.patch
16 ===================================================================
17 From 6f81613ebd2ef7eba88ea2edd596f9441be2c294 Mon Sep 17 00:00:00 2001
18 From: Ritesh Raj Sarraf <rrs@××××××.org>
19 Date: Thu, 13 Jun 2013 12:18:45 +0530
20 Subject: [PATCH] Honor .conf files only
21 MIME-Version: 1.0
22 Content-Type: text/plain; charset=UTF-8
23 Content-Transfer-Encoding: 8bit
24
25 Thanks: Sven Köhler
26 ---
27 usr/sbin/laptop_mode | 2 +-
28 1 file changed, 1 insertion(+), 1 deletion(-)
29
30 diff --git a/usr/sbin/laptop_mode b/usr/sbin/laptop_mode
31 index 71beab2..070f1de 100755
32 --- a/usr/sbin/laptop_mode
33 +++ b/usr/sbin/laptop_mode
34 @@ -234,7 +234,7 @@ lmt_load_config ()
35 test -d /etc/laptop-mode/conf.d/board-specific && CONF_DIR="$CONF_DIR /etc/laptop-mode/conf.d/board-specific"
36
37 for PER_DIR in $CONF_DIR; do
38 - for CONF in $PER_DIR/*; do
39 + for CONF in $PER_DIR/*.conf; do
40 if [ -r "$CONF" ] ; then
41 . "$CONF"
42 #Handle individual module debug settings
43 --
44 1.8.1.6