X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-hwinfo;h=42596e84f3158ba8112b29e6ce1229f5c05b6ea3;hb=53034c35c2a05fb15bc506fc5de677bbd452d2c6;hp=c0c654c3fd947be848fd778663f135f2b545a7d4;hpb=7e0b6360fea6b00fb29273cf53b858f69af9b079;p=grml-hwinfo.git diff --git a/grml-hwinfo b/grml-hwinfo index c0c654c..42596e8 100755 --- a/grml-hwinfo +++ b/grml-hwinfo @@ -33,12 +33,11 @@ _opt_output_file=false usage() { echo " - This tool collects information of the hardware this tool is being executed - on. It can be executed as normal user to collect some basic information or - with root permissions to collect as much information as possible. By - default, a file named grml-hwinfo-TIMESTAMP.tar.bz2 storing all collected - information will be created in the current working directory. Alternatively, - you can have it create a directory with all information. + This tool collects information of the hardware it is being executed on. + It can be executed as normal user to collect some basic information or + (recommended) with root permissions to collect more system information. + If executed without any options a file named grml-hwinfo-TIMESTAMP.tar.bz2 + storing all collected information is created in the current working directory. Options: @@ -325,7 +324,7 @@ cd "${OUTDIR}" || exit 1 ) # get rid of empty files -for file in *; do +for file in *.error ; do test -s $file || rm $file done @@ -335,7 +334,7 @@ cd "${WORKING_DIR}" # create tarball if [ -n "$GENERATE_FILE" ] ; then - tar jcf "${OUTFILE}" "${OUTDIRNAME}" + tar acf "${OUTFILE}" "${OUTDIRNAME}" [ -r "$OUTFILE" ] && echo "$OUTFILE ("$(ls -ahl "$OUTFILE" | awk '{print $5}')") has been generated." fi