From 3985d9b976f4daabb9adea38735d9c9b77da7fac Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 May 2012 11:26:53 +0200 Subject: [PATCH] tests: add some help to module_reload ... so that it's easier to get the kernel configuration right. --- tests/module_reload | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/module_reload b/tests/module_reload index 06f36746..7f794fd8 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