mirror of
https://github.com/armbian/build.git
synced 2026-01-06 09:58:46 -08:00
Another customize-image.sh.template example...
to be used with unattended storage performance testing
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user