added files for live_Cd

This commit is contained in:
rishwanth1995 2018-08-16 16:59:38 -04:00
parent 418e202079
commit d63167fd91
4 changed files with 27 additions and 23 deletions

BIN
unix/autopsy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
unix/autopsy_wallpaper1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
unix/autopsy_wallpaper2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -25,9 +25,7 @@ errorLog () {
}
#Verify we can find the script
if [[ -x "$AUTOPSY_BIN" ]]; then
infoLog "Autopsy found"
else
if [[ ! -x "$AUTOPSY_BIN" ]]; then
errorLog "Autopsy binaries not found at $AUTOPSY_BIN. Exiting....."
fi
@ -53,18 +51,24 @@ showAndReadOptions () {
echo "Select a mounted disk to create config directory"
# Maintainers: Adjust these grep statements based on where your
# platform mounts media.
mnt=( $(mount | grep "media" | grep "rw" | awk '{print $3}') )
mnt=( $(findmnt -lo source,target,fstype,label,options,size | grep "media" | grep "rw" | awk '{print $1, $2, $4, $6}') )
# Add option to user to not use mounted media
length=${#mnt[@]}
mnt[length]="Do not store on mounted disk"
options_length=$(( length + 1 ))
options_length=$(( length / 4 + 1 ))
if [ $length -gt 0 ]; then
printf "%10s\t%10s\t%10s\t%10s\t%10s\n" "OPTION" "SOURCE" "TARGET" "LABEL" "SIZE"
fi
x=1
for word in "${mnt[@]}"
for ((i=0;i< $options_length;i++));
do
echo [$x] "${word}"
x=$((x + 1))
printf "%10s\t" "[$(( i+1 ))]"
for((j=0;j<4;j++));
do
printf "%10s\t" "${mnt[j + i * 4]}"
done
echo
done
read -n 1 option
if [[ $option = "" ]] || ! [[ "$option" =~ ^[0-9]+$ ]]; then
@ -85,7 +89,7 @@ do
done
if [ "$option" != "$options_length" ]; then
index=$(( option - 1 ))
index=$(( (option - 1) * 4 + 1 ))
echo "Autopsy configurations will be stored in" "${mnt[$index]}"". Are you sure? (y/n)"
read affirmation
if [ "$affirmation" == "y" ] || [ "$affirmation" == "Y" ]; then