From 759358599827982d3039beeef00782e7cd6f63c3 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Tue, 26 Jul 2011 11:04:31 -0400 Subject: [PATCH] rcS: Provide test=test to run /test and reboot afterwards. --- root_image/etc/init.d/rcS | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 -- 2.39.5