]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
rcS: Provide test=test to run /test and reboot afterwards.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 26 Jul 2011 15:04:31 +0000 (11:04 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 26 Jul 2011 15:04:31 +0000 (11:04 -0400)
root_image/etc/init.d/rcS

index 0e7f96c112fa6664da3733cf9828317e57398f22..20b6bbfff9cfc245353cb3c876f8debe1d2badb4 100755 (executable)
@@ -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