From f0c9d224eac07609457dfeba20407ca583d061eb Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sat, 14 Feb 2015 02:46:05 -0500 Subject: Moved powertop.trisquel7 to resources/scripts/misc/ --- diff --git a/.gitignore b/.gitignore index 06978d0..7bba8d6 100644 --- a/.gitignore +++ b/.gitignore @@ -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 @@

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.

-

$ sudo ./powertop.trisquel7

+

$ sudo ./resources/scripts/misc/powertop.trisquel7

Back to top of page

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 -# -# 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 . -# - -/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 -- cgit v0.9.1