forked from linrunner/TLP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FHS states architecture independent "data" (i.e. scripts) belongs in /usr/share. Remove /usr/lib64 stuff: once used in Fedora packaging (pm-utils put scripts into /usr/lib64/pm-utils despite being architecture independent), this is no longer necessary.
- Loading branch information
Showing
11 changed files
with
63 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
tlp (0.8.900-1) unstable; urgency=low | ||
|
||
* Development package | ||
|
||
-- Thomas Koch <[email protected]> Tue, 25 Aug 2015 19:41:15 +0200 | ||
|
||
tlp (0.8-1) unstable; urgency=low | ||
|
||
* New upstream release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,23 @@ | ||
#!/bin/sh | ||
# tlp - if tlp is enabled, override corresponding script | ||
# in /usr/lib*/pm-utils/power.d/ | ||
# tlp - if tlp is enabled, override corresponding pm-utils script | ||
# in /usr/lib/pm-utils/power.d/ | ||
|
||
CONFFILE=@TLP_CONF@ | ||
LIBDIRS='/usr/lib/pm-utils /usr/lib64/pm-utils @TLP_PLIB@' | ||
LIBDIR='@TLP_PLIB@' | ||
|
||
for d in ${LIBDIRS}; do | ||
if [ -d "${d}/power.d" ]; then | ||
blocked="${d}/power.d/${0##*/}" | ||
break | ||
fi | ||
done | ||
if [ -d "$LIBDIR/power.d" ]; then | ||
# pm-utils script dir exists | ||
blocked="$LIBDIR/power.d/${0##*/}" | ||
|
||
if [ -n "$blocked" ] && [ -x "$blocked" ]; then | ||
# else nothing to disable -> don't read $CONFFILE | ||
|
||
if [ -e "$CONFFILE" ] && . "$CONFFILE" && [ "$TLP_ENABLE" = '1' ]; then | ||
# TLP is enabled -> disable $blocked | ||
echo "Notice: '${blocked}' disabled by TLP." | ||
else | ||
exec "$blocked" $* | ||
fi | ||
if [ -x "$blocked" ]; then | ||
# overridable pm-utils script exists --> check if TLP enabled | ||
if [ -e "$CONFFILE" ] && . "$CONFFILE" && [ "$TLP_ENABLE" = '1' ]; then | ||
# TLP is enabled --> disable $blocked | ||
echo "Notice: '${blocked}' disabled by TLP." | ||
else | ||
exec "$blocked" $* | ||
fi | ||
fi # else: nothing to disable -> don't read $CONFFILE | ||
fi | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters