Another customize-image.sh.template example...

to be used with unattended storage performance testing
This commit is contained in:
ThomasKaiser
2018-10-14 20:38:11 +02:00
parent 277e6e6f65
commit 82d5b42984

View File

@@ -214,4 +214,20 @@ InstallOpenMediaVault() {
chage -d 0 root
} # InstallOpenMediaVault
UnattendedStorageBenchmark() {
# Function to create Armbian images ready for unattended storage performance testing.
# Useful to use the same OS image with a bunch of different SD cards or eMMC modules
# to test for performance differences without wasting too much time.
rm /root/.not_logged_in_yet
apt-get -qq install time
wget -qO /usr/local/bin/sd-card-bench.sh https://raw.githubusercontent.com/ThomasKaiser/sbc-bench/master/sd-card-bench.sh
chmod 755 /usr/local/bin/sd-card-bench.sh
sed -i '/^exit\ 0$/i \
/usr/local/bin/sd-card-bench.sh &' /etc/rc.local
} # UnattendedStorageBenchmark
Main "$@"