projects
/
grml-hwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1361f33
)
Improve check for running_kernel
author
Michael Prokop
<mika@grml.org>
Wed, 15 Aug 2012 23:23:42 +0000
(
01:23
+0200)
committer
Michael Prokop
<mika@grml.org>
Wed, 15 Aug 2012 23:23:42 +0000
(
01:23
+0200)
grml-hwinfo
patch
|
blob
|
history
diff --git
a/grml-hwinfo
b/grml-hwinfo
index
a9b77b8
..
faf0e74
100755
(executable)
--- 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
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
fi
# power management
@@
-199,6
+198,10
@@
cd "${OUTDIR}" || exit 1
[ -r /boot/config-$UNAME ] && cat /boot/config-$UNAME > kernelconfig
fi
[ -r /boot/config-$UNAME ] && cat /boot/config-$UNAME > kernelconfig
fi
+ exectest dpkg && COLUMNS=1000 dpkg -l linux-image-$UNAME \
+ | 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
# X stuff
if [ -n "${DISPLAY}" ] ; then
exectest xviddetect && xviddetect > xviddetect