From 242f91ab971150863568e8e13046201194400760 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Mon, 15 Aug 2016 19:50:52 +0200 Subject: Added --rootdir for forensics --- include/parameters | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include/parameters') diff --git a/include/parameters b/include/parameters index 9f193c62..85147e96 100644 --- a/include/parameters +++ b/include/parameters @@ -289,6 +289,22 @@ PURPLE="${NORMAL}"; ;; + # Root directory (useful for forensics) + --rootdir | --root-dir) + if [ $# -gt 1 ]; then + shift + if [ -d $1 ]; then + ROOTDIR="$1" + else + echo "Invalid rootdir provided (does not exist)" + exit 1 + fi + else + echo "Need a root directory (e.g. /mnt/forensics)" + exit 1 + fi + ;; + # Skip execution of plugins --skip-plugins | --no-plugins) SKIP_PLUGINS=1 -- cgit v1.2.3