tests: add some help to module_reload

... so that it's easier to get the kernel configuration right.
This commit is contained in:
root 2012-05-25 11:26:53 +02:00
parent a628d56470
commit 3985d9b976

View File

@ -12,7 +12,11 @@ SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
# vtcon0 is vga, vtcon1 fbcon and let's pray that won't change due to boot load
# time changes
echo 0 > /sys/class/vtconsole/vtcon1/bind || echo "no kms unload support" && exit 77
if ! echo 0 > /ys/class/vtconsole/vtcon1/bind ; then
echo -e "no kms unload support"
echo "please enable CONFIG_VT_HW_CONSOLE_BINDING in the kernel"
exit 77
fi
#ignore errors in ips - gen5 only
rmmod intel_ips &> /dev/null