Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
if [ -z "$1" ]; then
echo "Please supply target device"
else
outFile=$2
if [ -n "$outFile" ]; then
echo "logging to $2"
else
echo "no logfile supplied => /dev/null"
outFile="/dev/null"
fi
wget -O hddBench_smallFiles.sh https://gist.githubusercontent.com/PhilippMundhenk/5d796ee6c19dbb8f005c/raw/b974a5f7ec37a96df2ed8a36fe03848e55eb3400/hddBench_smallFiles.sh
wget -O hddBench_largeFile.sh https://gist.githubusercontent.com/PhilippMundhenk/0c64e42077cba549387b/raw/3588c19cf3c58280201fb9ba63fe959b19646b79/hddBench_largeFile.sh
chmod 777 hddBench_largeFile.sh
chmod 777 hddBench_smallFiles.sh
./hddBench_largeFile.sh $1 "$outFile-large"
./hddBench_smallFiles.sh $1 "$outFile-small"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.