Commit 2838afa5 authored by anonym's avatar anonym
Browse files

Make the user parameter mandatory.

parent 0fae864d
......@@ -6,14 +6,9 @@ debug_command() {
"$@"
}
# Takes either one argument (the file) or two arguments (user to read
# the file, and the file).
debug_file() {
local user=root
if [ "${#}" -gt 1 ]; then
user="${1}"
shift
fi
local user="${1}"
shift
file="${1}"
[ ! -e "${file}" ] && return
echo
......@@ -30,19 +25,19 @@ debug_command "/bin/mount"
debug_command "/usr/bin/lspci"
debug_command grep spoof-mac: /var/log/messages
debug_file "/etc/X11/xorg.conf"
debug_file root "/etc/X11/xorg.conf"
debug_file amnesia "/home/amnesia/.xsession-errors"
debug_file "/proc/asound/cards"
debug_file "/proc/asound/devices"
debug_file "/proc/asound/modules"
debug_file "/var/log/Xorg.0.log"
debug_file root "/proc/asound/cards"
debug_file root "/proc/asound/devices"
debug_file root "/proc/asound/modules"
debug_file root "/var/log/Xorg.0.log"
debug_file Debian-gdm "/var/log/gdm3/:0-slave.log"
debug_file Debian-gdm "/var/log/gdm3/:0-greeter.log"
debug_file Debian-gdm "/var/log/gdm3/tails-greeter.errors"
debug_file "/var/log/live-persist"
debug_file "/var/log/live/boot.log"
debug_file "/var/log/live/config.log"
debug_file "/var/lib/gdm3/tails.persistence"
debug_file "/var/lib/live/config/tails.physical_security"
debug_file "/live/persistence/TailsData_unlocked/persistence.conf"
debug_file "/live/persistence/TailsData_unlocked/live-additional-software.conf"
debug_file root "/var/log/live-persist"
debug_file root "/var/log/live/boot.log"
debug_file root "/var/log/live/config.log"
debug_file root "/var/lib/gdm3/tails.persistence"
debug_file root "/var/lib/live/config/tails.physical_security"
debug_file root "/live/persistence/TailsData_unlocked/persistence.conf"
debug_file root "/live/persistence/TailsData_unlocked/live-additional-software.conf"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment