From 7405c014267e569ed0e7109c4b037d6045f0353a Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 31 May 2015 02:47:07 -0500 Subject: fix for dash --- embedded-test.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'embedded-test.sh') diff --git a/embedded-test.sh b/embedded-test.sh index 5650b8e..2918086 100755 --- a/embedded-test.sh +++ b/embedded-test.sh @@ -165,7 +165,7 @@ runtest() { qemu=qemu-system-${arch} qemu_args= - if [[ $ntp ]]; then + if [ $ntp ]; then qemu_append="-append ntpserver=$ntp" fi if [ $shell -eq 1 ]; then @@ -386,18 +386,18 @@ runtest() { cat > ${root}/run.sh << EOF #!/bin/sh uname -a -if [[ \$ntpserver ]]; then +if [ \$ntpserver ]; then rdate \$ntpserver else rdate time.fu-berlin.de fi -file /bin/busybox EOF if [ $test = "boot" ];then cat >> ${root}/run.sh << EOF +file /bin/busybox +size /bin/busybox for i in \$(ls /lib/*.so|grep -v libgcc);do - size /bin/busybox size \$i done exit @@ -422,7 +422,7 @@ EOF musl|glibc) cat >> ${root}/run.sh << EOF cd /opt/libc-test -make run +CC=: make run exit EOF ;; -- cgit v1.2.3