1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/sh tar -xvf iozone3_308.tar cd iozone3_308/src/current/ case $OS_ARCH in "x86_64" ) make linux-AMD64 ;; * ) make linux ;; esac echo "#!/bin/sh iozone_ram=\$((\$SYS_MEMORY * 2)) iozone3_308/src/current/iozone -s \${iozone_ram}M \$@ 2>&1" > ../../../iozone chmod +x ../../../iozone