Revert "ffdc: Added -e option to enable dump specific functions"
This reverts commit ab741df3415931d146460af88e79716e4bd40fe2.
ffdc -e option is no longer used by dump manager and it
is replaced by dreport.
Change-Id: I8a0c5f8627fa87571541b578711fc91bdd0ff4b8
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/ffdc b/ffdc
index de1bbe8..6c32abc 100644
--- a/ffdc
+++ b/ffdc
@@ -1,7 +1,5 @@
#!/bin/sh
-# TODO openbmc/openbmc#1622 remove -e option related changes.
-
help=$'FFDC File Collection Script
Collects various FFDC files and system parameters and places them in a .tar
@@ -11,7 +9,6 @@
Options:
-d, --dir <directory> Specify destination directory. Defaults to /tmp if
invalid or unspecified.
- -e, --enable_dump Enable BMC Dump specific features.
-h, --help Display this help text and exit.
'
@@ -41,7 +38,6 @@
dir=$"ffdc_$(date +"%Y-%m-%d_%H-%M-%S")"
dest="/tmp"
-enable_dump=false
while [[ $# -gt 0 ]]; do
key="$1"
@@ -56,10 +52,6 @@
fi
shift 2
;;
- -e|--enable_dump)
- enable_dump=true
- shift
- ;;
-h|--help)
echo "$help"
exit
@@ -73,12 +65,6 @@
echo "Using destination directory $dest"
-if [ $enable_dump = true ]; then
- id=$(basename $dest)
- printf -v f_id "%08d" $id
- dir=$"obmcdump_"$f_id"_$(date +"%s")"
-fi
-
mkdir -p "$dest/$dir"
for ((i=0;i<${#arr[@]};i+=2)); do