debian/templates/image.plain.bug/include-1tainted: Add TAINT_CRAP.

svn path=/dists/trunk/linux-2.6/; revision=14203
This commit is contained in:
Bastian Blank 2009-09-02 09:42:35 +00:00
parent 1aa710396d
commit 4c070f4513
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ TAINT_USER=6
TAINT_DIE=7
TAINT_OVERRIDDEN_ACPI_TABLE=8
TAINT_WARN=9
TAINT_CRAP=10
add_1tainted() {
tainted=$(cat /proc/sys/kernel/tainted)
@ -23,6 +24,7 @@ add_1tainted() {
[ $(($tainted & 1<<$TAINT_DIE)) -ne 0 ] && s="${s}D"
[ $(($tainted & 1<<$TAINT_OVERRIDDEN_ACPI_TABLE)) -ne 0 ] && s="${s}A"
[ $(($tainted & 1<<$TAINT_WARN)) -ne 0 ] && s="${s}W"
[ $(($tainted & 1<<$TAINT_CRAP)) -ne 0 ] && s="${s}C"
echo '** Tainted:' $s "($tainted)" >&3
echo >&3
else