diff options
author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-11-02 21:52:54 -0500 |
---|---|---|
committer | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-11-07 00:10:13 -0600 |
commit | 8c996505018e8d63cb6115592ef0ee88fa8df4a9 (patch) | |
tree | db37fef5c6f4f3b2109f3ff55a6db6ddf2d22065 | |
parent | 95a72983e5991871352c5bd4ab640d91cefbd8df (diff) | |
download | phosphor-debug-collector-8c996505018e8d63cb6115592ef0ee88fa8df4a9.tar.gz phosphor-debug-collector-8c996505018e8d63cb6115592ef0ee88fa8df4a9.zip |
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>
-rw-r--r-- | ffdc | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -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 @@ usage: ffdc [OPTION] 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 @@ declare -a arr=( dir=$"ffdc_$(date +"%Y-%m-%d_%H-%M-%S")" dest="/tmp" -enable_dump=false while [[ $# -gt 0 ]]; do key="$1" @@ -56,10 +52,6 @@ while [[ $# -gt 0 ]]; do fi shift 2 ;; - -e|--enable_dump) - enable_dump=true - shift - ;; -h|--help) echo "$help" exit @@ -73,12 +65,6 @@ done 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 |