From e12d7df724e5058bee6c4b71bb7310f49550721b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 17 Aug 2015 16:39:46 +0200 Subject: Add etherwake to boot command --- targets/ryuglab/conf.py | 3 +-- targets/ryuglab/scripts/boot | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 targets/ryuglab/scripts/boot (limited to 'targets/ryuglab') diff --git a/targets/ryuglab/conf.py b/targets/ryuglab/conf.py index 93dd9ea..b8e85b4 100644 --- a/targets/ryuglab/conf.py +++ b/targets/ryuglab/conf.py @@ -4,8 +4,7 @@ kernel_arch = 'powerpc' build_command = ['../targets/ryuglab/scripts/compile'] -boot_command = ['novaboot', 'targets/ryuglab/cyclictest/nbscript', - '--exiton="NOVABOOT EXIT LINUX-CONF-PERF"'] +boot_command = ['targets/ryuglab/scripts/boot'] db_user = 'kocikare' db_password = 'ohNg3Ien' diff --git a/targets/ryuglab/scripts/boot b/targets/ryuglab/scripts/boot new file mode 100755 index 0000000..a28358b --- /dev/null +++ b/targets/ryuglab/scripts/boot @@ -0,0 +1,8 @@ +#!/bin/bash + +# Wake target if target is suspended +sudo /usr/sbin/etherwake 00:0c:f1:77:ec:46 + +# Boot using novaboot +cd `dirname $0` +novaboot ../cyclictest/nbscripts --exiton="NOVABOOT EXIT LINUX-CONF-PERF" -- cgit v1.2.3