Skip to content

Commit

Permalink
general_hw: Add a workaround in flash_sd script
Browse files Browse the repository at this point in the history
Ignore some additional arguments passed when NUMDISKS=2
  • Loading branch information
ggardet committed Jul 19, 2023
1 parent 6d1ef7b commit 685e5b5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions data/generalhw_scripts/flash_sd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ username=root # $(whoami)

# Check number of args
if [ "$#" -ne 6 ]; then
echo "Please provide <tool>, <destination>, <device serial>, <sdX device>, <image to flash> and <hdd size> (ignored). Be carefull when setting sdX device. Destination is IP_or_hostname:/storage/"
exit 1;
# Workaround for jeos-container_host@RPi3 where NUMDISKS=2 is set and adds 2 additonal args
if [ "$#" -ne 8 ]; then
echo "Please provide <tool>, <destination>, <device serial>, <sdX device>, <image to flash> and <hdd size> (ignored). Be carefull when setting sdX device. Destination is IP_or_hostname:/storage/"
exit 1;
else
echo "Too many arguments, but ignore them as a workaround for jeos-container_host@RPi3"
fi
fi

# Get tool: sd-mux-ctrl or usbsdmux
Expand Down

0 comments on commit 685e5b5

Please sign in to comment.