X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-hwinfo;h=579271d51a63ae5d533078dee82a993031fcebcb;hb=508ee7c87d8ec6d72401bf0535494e0b52572197;hp=a9b77b840e5028fd6fc42b6ebb9ed6bdb5096f1b;hpb=66a9dfd8425ae25e2936eb09d279281dadc89158;p=grml-hwinfo.git diff --git a/grml-hwinfo b/grml-hwinfo index a9b77b8..579271d 100755 --- a/grml-hwinfo +++ b/grml-hwinfo @@ -183,7 +183,6 @@ cd "${OUTDIR}" || exit 1 if exectest dpkg ; then dpkg --get-selections > dpkg_get_selections COLUMNS=300 dpkg --list > dpkg_list - COLUMNS=1000 dpkg -l linux-image-$UNAME | grep linux-image-$UNAME | tr -s ' ' > running_kernel fi # power management @@ -199,6 +198,10 @@ cd "${OUTDIR}" || exit 1 [ -r /boot/config-$UNAME ] && cat /boot/config-$UNAME > kernelconfig fi + exectest dpkg && COLUMNS=1000 dpkg -l linux-image-$UNAME 2>running_kernel.error \ + | grep linux-image-$UNAME | tr -s ' ' > running_kernel 2>>running_kernel.error + dpkg -S /boot/vmlinuz-$(uname -r) >> running_kernel 2>>running_kernel.error + # X stuff if [ -n "${DISPLAY}" ] ; then exectest xviddetect && xviddetect > xviddetect @@ -254,6 +257,11 @@ else fi ) +# get rid of empty files +for file in *; do + test -s $file || rm $file +done + echo cd "${WORKING_DIR}"