diff options
author | root <daniel.vetter@ffwll.ch> | 2012-05-25 11:26:53 +0200 |
---|---|---|
committer | root <daniel.vetter@ffwll.ch> | 2012-05-25 11:28:38 +0200 |
commit | 3985d9b976f4daabb9adea38735d9c9b77da7fac (patch) | |
tree | 8f62a59572e4925d16baad1da357db9a354d0023 | |
parent | a628d564709aec0dda98ae71c24bff7cfe9268c0 (diff) |
tests: add some help to module_reload
... so that it's easier to get the kernel configuration right.
-rwxr-xr-x | tests/module_reload | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/module_reload b/tests/module_reload index 06f3674..7f794fd 100755 --- a/tests/module_reload +++ b/tests/module_reload @@ -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 |