diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-06-10 20:30:48 (EDT) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-06-10 20:30:48 (EDT) |
commit | 12c50f7939c02db85f05830c4b9fccf464b3977a (patch) | |
tree | 42c0b72ee957cc2f70b442cefb14923b06cb8507 /resources/scripts/misc | |
parent | 34270811fce1ecf0bcf3b1363b0dc3dbf284ab09 (diff) | |
download | libreboot-12c50f7939c02db85f05830c4b9fccf464b3977a.zip libreboot-12c50f7939c02db85f05830c4b9fccf464b3977a.tar.gz libreboot-12c50f7939c02db85f05830c4b9fccf464b3977a.tar.bz2 |
all script: use a standard style
Based on the style used for the script in
resources/scripts/helpers/build/release/
Diffstat (limited to 'resources/scripts/misc')
-rwxr-xr-x | resources/scripts/misc/powertop.trisquel7 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/resources/scripts/misc/powertop.trisquel7 b/resources/scripts/misc/powertop.trisquel7 index 670c379..25bb597 100755 --- a/resources/scripts/misc/powertop.trisquel7 +++ b/resources/scripts/misc/powertop.trisquel7 @@ -22,7 +22,7 @@ set -u -e if [[ $EUID -ne 0 ]]; then - echo "This script must be run as root" + printf "This script must be run as root\n" exit 1 fi @@ -33,19 +33,19 @@ apt-get -y install powertop # Remove startup symlink if it exists update-rc.d powertop remove # Remove previous file if it exists -rm -rf /etc/init.d/powertop +rm -Rf "/etc/init.d/powertop" # write the correct commands there: -echo "#!/bin/sh" > /etc/init.d/powertop -echo "/usr/sbin/powertop --auto-tune" >> /etc/init.d/powertop +printf "#!/bin/sh\n" > "/etc/init.d/powertop" +printf "/usr/sbin/powertop --auto-tune\n" >> "/etc/init.d/powertop" # make it executable: -chmod +x /etc/init.d/powertop +chmod +x "/etc/init.d/powertop" # Add the service to make it run automatically at boot time: update-rc.d powertop defaults # Run powertop now and tell the user powertop --auto-tune -echo "Done. Run 'powertop --auto-tune' now. This will also run automatically at boot time. Run it again at any time, if needed. This has also been done for you just now." +printf "Done. Run 'powertop --auto-tune' now. This will also run automatically at boot time. Run it again at any time, if needed. This has also been done for you just now.\n" |