mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 05:28:08 +00:00
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:
parent
19610748d3
commit
e0234485f7
@ -14,7 +14,7 @@ TRACE "Under /bin/flash.sh"
|
|||||||
|
|
||||||
case "$CONFIG_FLASHROM_OPTIONS" in
|
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."
|
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
|
fi
|
||||||
|
|
||||||
if [ ! -e "$ROM" ]; then
|
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
|
fi
|
||||||
|
|
||||||
if [ "$READ" -eq 0 ] && [ "${ROM##*.}" = tgz ]; then
|
if [ "$READ" -eq 0 ] && [ "${ROM##*.}" = tgz ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user