aboutsummaryrefslogtreecommitdiff
path: root/handlers/sys.in
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-06-15 20:40:27 +0200
committerintrigeri <intrigeri@boum.org>2012-06-15 20:40:27 +0200
commitedfe2adb85faef277283e65454ca533fde8f7e89 (patch)
tree545f1d278d6541fcba09091d196bd189ddc9d042 /handlers/sys.in
parent13edaf0912f8b36d5035b5ebdbbc28fd0d498427 (diff)
parentaae966981e259b11afc1e01b68d4fa7c59cde646 (diff)
downloadbackupninja-edfe2adb85faef277283e65454ca533fde8f7e89.tar.gz
backupninja-edfe2adb85faef277283e65454ca533fde8f7e89.tar.bz2
Merge tag 'backupninja-1.0' into upstream
Releasing backupninja 1.0 Happy birthdays!
Diffstat (limited to 'handlers/sys.in')
-rw-r--r--handlers/sys.in24
1 files changed, 14 insertions, 10 deletions
diff --git a/handlers/sys.in b/handlers/sys.in
index 74133a3..92998cc 100644
--- a/handlers/sys.in
+++ b/handlers/sys.in
@@ -348,13 +348,15 @@ echo "Getting information about the kernel."
echo
STATUS="Getting kernel version:"
catifexec "/bin/uname" "-a"
-STATUS="Checking module information:"
-catifexec "/sbin/lsmod"
-for x in $(/sbin/lsmod | /usr/bin/cut -f1 -d" " 2>/dev/null | /bin/grep -v Module 2>/dev/null
-) ; do
- STATUS="Checking module information $x:"
- catifexec "/sbin/modinfo" "$x"
-done
+if [ "$hardware" == "yes" ]; then
+ STATUS="Checking module information:"
+ catifexec "/sbin/lsmod"
+ for x in $(/sbin/lsmod | /usr/bin/cut -f1 -d" " 2>/dev/null | /bin/grep -v Module 2>/dev/null
+ ) ; do
+ STATUS="Checking module information $x:"
+ catifexec "/sbin/modinfo" "$x"
+ done
+fi
STATUS="Gathering information about your filesystems:"
catiffile "/proc/filesystems"
@@ -432,9 +434,11 @@ catiffile "/proc/rtc"
STATUS="Gathering information about your ide drivers:"
catiffile "/proc/ide"
-STATUS="Gathering information about your bus:"
-catifexec "/usr/bin/lspci"
-catiffile "/proc/bus"
+if [ "$hardware" == "yes" ]; then
+ STATUS="Gathering information about your bus:"
+ catifexec "/usr/bin/lspci"
+ catiffile "/proc/bus"
+fi
echo
echo "Getting disk and filesystem information."