INNER CODE UNIT · Shell

USB_DEVICE

geerlingguy/raspberry-pi-dramble · setup/benchmarks/usb-benchmarks.sh:30

USB_DEVICE=/dev/sdb
# Make sure the drive is formatted (e.g. ext4) and mounted somewhere.
USB_DEVICE_MOUNT_PATH=/arcanite

# Variables.
USER_HOME_PATH=$(getent passwd $SUDO_USER | cut -d: -f6)
IOZONE_INSTALL_PATH=$USER_HOME_PATH
IOZONE_VERSION=iozone3_492

cd $IOZONE_INSTALL_PATH

# Install dependencies.
if [ ! `which hdparm` ]; then
  printf "Installing hdparm...\n"
  apt-get install -y hdparm
  printf "Install complete!\n\n"
fi
if [ ! `which curl` ]; then

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…