tests: add some help to module_reload
authorroot <daniel.vetter@ffwll.ch>
Fri, 25 May 2012 09:26:53 +0000 (11:26 +0200)
committerroot <daniel.vetter@ffwll.ch>
Fri, 25 May 2012 09:28:38 +0000 (11:28 +0200)
... so that it's easier to get the kernel configuration right.

tests/module_reload

index 06f3674..7f794fd 100755 (executable)
@@ -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