From: Konrad Rzeszutek Wilk Date: Tue, 26 Jul 2011 15:04:31 +0000 (-0400) Subject: rcS: Provide test=test to run /test and reboot afterwards. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=759358599827982d3039beeef00782e7cd6f63c3;p=xentesttools%2Fbootstrap.git rcS: Provide test=test to run /test and reboot afterwards. --- diff --git a/root_image/etc/init.d/rcS b/root_image/etc/init.d/rcS index 0e7f96c..20b6bbf 100755 --- a/root_image/etc/init.d/rcS +++ b/root_image/etc/init.d/rcS @@ -78,8 +78,7 @@ echo "*.* /dev/console" > /etc/syslog.conf echo "*.* /var/log/messages" >> /etc/syslog.conf /sbin/syslogd -/usr/bin/xen-detect -P -if [ $? == 0 ]; then +if [ `cat /sys/hypervisor/type` == "xen" ]; then modprobe evtchn modprobe xen_evtchn /etc/init.d/xencommons start @@ -122,7 +121,13 @@ if [ $? == 0 ]; then net) netserver iperf -s -D -w 256000 - ;; + ;; + benchmark) + if [ -e /test ]; then + /test + reboot + fi + ;; esac fi if [ -z $NOFB ]; then