diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-02-20 03:15:20 +0000 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-02-20 03:23:52 +0000 |
commit | a4edcd82dc5405d8b58bf6ea2ddb6f928c059049 (patch) | |
tree | 1e15f2eaf4eb3541d14ab5d057a411b47604744e /resources/scripts/misc | |
parent | 2fe82322b537e39fa6e5fbc9fb0242c2b9a93c26 (diff) | |
download | librebootfr-a4edcd82dc5405d8b58bf6ea2ddb6f928c059049.tar.gz librebootfr-a4edcd82dc5405d8b58bf6ea2ddb6f928c059049.zip |
bash scripts: Only enable verbose output if DEBUG= is used
Diffstat (limited to 'resources/scripts/misc')
-rwxr-xr-x | resources/scripts/misc/grub-background | 3 | ||||
-rwxr-xr-x | resources/scripts/misc/ich9macchange | 3 | ||||
-rwxr-xr-x | resources/scripts/misc/powertop.trisquel7 | 5 |
3 files changed, 7 insertions, 4 deletions
diff --git a/resources/scripts/misc/grub-background b/resources/scripts/misc/grub-background index 0fb721e8..cac4fed9 100755 --- a/resources/scripts/misc/grub-background +++ b/resources/scripts/misc/grub-background @@ -19,7 +19,8 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # -set -u -e -v +[ "x${DEBUG+set}" = 'xset' ] && set -v +set -u -e if (( $# != 2 )); then echo "Usage: ./grub-background /path/to/libreboot.rom /path/to/image.jpg" diff --git a/resources/scripts/misc/ich9macchange b/resources/scripts/misc/ich9macchange index 353ab5f7..0c9a8f54 100755 --- a/resources/scripts/misc/ich9macchange +++ b/resources/scripts/misc/ich9macchange @@ -18,7 +18,8 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # -set -u -e -v +[ "x${DEBUG+set}" = 'xset' ] && set -v +set -u -e arch="unknown" if [ $(uname -i) = "i686" ] || [ $(uname -m) = "i686" ]; then diff --git a/resources/scripts/misc/powertop.trisquel7 b/resources/scripts/misc/powertop.trisquel7 index c8478f20..670c3791 100755 --- a/resources/scripts/misc/powertop.trisquel7 +++ b/resources/scripts/misc/powertop.trisquel7 @@ -2,7 +2,7 @@ # powertop.trisquel7: automatically sets up powertop --auto-tune on startup in trisquel 7 # -# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk> +# Copyright (C) 2014, 2015 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 @@ -18,7 +18,8 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # -set -u -e -v +[ "x${DEBUG+set}" = 'xset' ] && set -v +set -u -e if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" |