summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-02-14 02:46:05 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-02-14 02:46:05 (EST)
commitf0c9d224eac07609457dfeba20407ca583d061eb (patch)
treef78e2f002ea5495b4a3ced72c51f615b781a8563
parent6208ec9870659be04be64da33d020e4470a77ce7 (diff)
downloadlibreboot-f0c9d224eac07609457dfeba20407ca583d061eb.zip
libreboot-f0c9d224eac07609457dfeba20407ca583d061eb.tar.gz
libreboot-f0c9d224eac07609457dfeba20407ca583d061eb.tar.bz2
Moved powertop.trisquel7 to resources/scripts/misc/
-rw-r--r--.gitignore1
-rw-r--r--docs/misc/index.html2
-rwxr-xr-xpowertop.trisquel7.init21
-rwxr-xr-xresources/scripts/misc/powertop.trisquel7 (renamed from powertop.trisquel7)3
4 files changed, 4 insertions, 23 deletions
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 @@
<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