]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
drfb: Make the init script properly deal with test=dfb
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 9 Feb 2011 20:36:10 +0000 (15:36 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 9 Feb 2011 20:36:10 +0000 (15:36 -0500)
root_image/etc/init.d/rcS

index 5228671fdb9fa3ff0b87fe04d19aebacfa9c5f35..4707d9fcb914f6d933b5f39b57d9bd86780cabb7 100755 (executable)
@@ -89,6 +89,11 @@ lspci
 cat /proc/interrupts
 cat /proc/iomem
 
+NOFB=0
+NOFB=$(boot_parameter 'nofb')
+if [ $? == 1 ]; then
+       NOFB=1
+fi
 
 TEST=$(boot_parameter 'test')
 if [ $? == 0 ]; then
@@ -102,5 +107,11 @@ if [ $? == 0 ]; then
                        ;;
                dfb)
                        while (true); do dfbtest_fillrect; done &
+                       NOFB=1
+                       ;;
        esac
-fi             
+fi
+
+if [ $NOFB == 0 ]; then
+       drfb_load &
+fi