initrd/bin/flash.sh: Remove -s vestiges

The -s mode was removed, remove it from usage.  Remove the test to skip
checking for board flashrom options with -s mode.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2023-07-10 09:10:52 -04:00
parent 19610748d3
commit e0234485f7
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -14,7 +14,7 @@ TRACE "Under /bin/flash.sh"
case "$CONFIG_FLASHROM_OPTIONS" in
-* )
[ "$1" != "-s" ] && echo "Board $CONFIG_BOARD detected, continuing..."
echo "Board $CONFIG_BOARD detected, continuing..."
;;
* )
die "ERROR: No board has been configured!\n\nEach board requires specific flashrom options and it's unsafe to flash without them.\n\nAborting."
@ -170,7 +170,7 @@ else
fi
if [ ! -e "$ROM" ]; then
die "Usage: $0 [-c|-r|-s] <path/to/image.(rom|tgz)>"
die "Usage: $0 [-c|-r] <path/to/image.(rom|tgz)>"
fi
if [ "$READ" -eq 0 ] && [ "${ROM##*.}" = tgz ]; then