From a75583bcb2fdc6d2b8cd7442172041a0ce4fc9e5 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Thu, 24 Feb 2011 12:43:33 -0500 Subject: [PATCH] rcS: Fix nofb to not run drfb_load, and under PVonHVM still retain ttyS0. --- root_image/etc/init.d/rcS | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/root_image/etc/init.d/rcS b/root_image/etc/init.d/rcS index 31f6c92..c8480f8 100755 --- a/root_image/etc/init.d/rcS +++ b/root_image/etc/init.d/rcS @@ -69,17 +69,19 @@ echo "*.* /dev/console" > /etc/syslog.conf echo "*.* /var/log/messages" >> /etc/syslog.conf /sbin/syslogd -/usr/bin/xen-detect -N -q -if [ $? == 1 ]; then +/usr/bin/xen-detect -P +if [ $? == 0 ]; then modprobe evtchn modprobe xen_evtchn /etc/init.d/xencommons start /etc/init.d/xend start rm -f /dev/ttyS0 ln -s /dev/null /dev/ttyS0 + sed -i 's/\(^ttyS0.*\)/# \1/' /etc/inittab else rm -f /dev/hvc0 ln -s /dev/null /dev/hvc0 + sed -i 's/\(^hvc0.*\)/# \1/' /etc/inittab echo "You might have to do kill -1 1 if you see 'can't open /dev/hvc0'" fi PATH=$PATH:/usr/bin:/usr/sbin @@ -89,10 +91,9 @@ lspci cat /proc/interrupts cat /proc/iomem -local NOFB=0 NOFB=$(boot_parameter 'nofb') if [ $? == 0 ]; then - NOFB=1 + NOFB="yes" fi TEST=$(boot_parameter 'test') @@ -107,7 +108,7 @@ if [ $? == 0 ]; then ;; dfb) while (true); do dfbtest_fillrect; done & - NOFB=1 + NOFB="yes" ;; net) netserver @@ -115,7 +116,6 @@ if [ $? == 0 ]; then ;; esac fi - -if [ $NOFB -eq 0 ]; then +if [ -z $NOFB ]; then drfb_load & fi -- 2.39.5