diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | docs/misc/index.html | 2 | ||||
-rwxr-xr-x | powertop.trisquel7.init | 21 | ||||
-rwxr-xr-x | resources/scripts/misc/powertop.trisquel7 (renamed from powertop.trisquel7) | 3 |
4 files changed, 4 insertions, 23 deletions
@@ -6,6 +6,7 @@ /memtest86+-5.01/ /bin/ /powertop/ +/resources/scripts/misc/powertop/ /libreboot_src.tar.xz /libreboot_util.tar.xz /libreboot_macbook21.tar.xz diff --git a/docs/misc/index.html b/docs/misc/index.html index 3bda2e7..ccf7ee3 100644 --- a/docs/misc/index.html +++ b/docs/misc/index.html @@ -41,7 +41,7 @@ <p>Included with libreboot is a script called 'powertop.trisquel7'. Run this as root and it will setup powertop to run with --auto-tune at boot time. Load the file in your text editor to see how it does that.</p> - <p>$ <b>sudo ./powertop.trisquel7</b></p> + <p>$ <b>sudo ./resources/scripts/misc/powertop.trisquel7</b></p> </div> <p><a href="#pagetop">Back to top of page</a></p> diff --git a/powertop.trisquel7.init b/powertop.trisquel7.init deleted file mode 100755 index 22df3f8..0000000 --- a/powertop.trisquel7.init +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -# powertop.trisquel6.init: the powertop.trisquel6 setup script puts this script in /etc/init.d in Trisquel 6 -# -# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk> -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -# - -/usr/sbin/powertop --auto-tune diff --git a/powertop.trisquel7 b/resources/scripts/misc/powertop.trisquel7 index 342d4f6..c8478f2 100755 --- a/powertop.trisquel7 +++ b/resources/scripts/misc/powertop.trisquel7 @@ -35,7 +35,8 @@ update-rc.d powertop remove rm -rf /etc/init.d/powertop # write the correct commands there: -cp powertop.trisquel7.init /etc/init.d/powertop +echo "#!/bin/sh" > /etc/init.d/powertop +echo "/usr/sbin/powertop --auto-tune" >> /etc/init.d/powertop # make it executable: chmod +x /etc/init.d/powertop |