mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-20 21:13:36 +08:00
rpi-eeprom-update: Add -l option to resolve the latest bootloader image
Add the -l option to return the latest bootloader EEPROM image. This will be used by rpi-eeprom-config to provide a more convenient mechanism for quick config changes.
This commit is contained in:
@@ -394,6 +394,8 @@ Options:
|
|||||||
-h Display help text and exit
|
-h Display help text and exit
|
||||||
-i Ignore package checksums - for rpi-eeprom developers.
|
-i Ignore package checksums - for rpi-eeprom developers.
|
||||||
-j Write status information using JSON notation
|
-j Write status information using JSON notation
|
||||||
|
-l Returns the full path to the latest available EEPROM image file according
|
||||||
|
to the FIRMWARE_RELEASE_STATUS and FIRMWARE_IMAGE_DIR settings.
|
||||||
-m Write status information to the given file when run without -a or -f
|
-m Write status information to the given file when run without -a or -f
|
||||||
-r Removes temporary EEPROM update files from the boot partition.
|
-r Removes temporary EEPROM update files from the boot partition.
|
||||||
-u Install the specified VL805 (USB EEPROM) image file.
|
-u Install the specified VL805 (USB EEPROM) image file.
|
||||||
@@ -694,7 +696,7 @@ MACHINE_OUTPUT=""
|
|||||||
JSON_OUTPUT="no"
|
JSON_OUTPUT="no"
|
||||||
IGNORE_DPKG_CHECKSUMS=$LOCAL_MODE
|
IGNORE_DPKG_CHECKSUMS=$LOCAL_MODE
|
||||||
|
|
||||||
while getopts A:adhif:m:ju:r option; do
|
while getopts A:adhilf:m:ju:r option; do
|
||||||
case "${option}" in
|
case "${option}" in
|
||||||
A)
|
A)
|
||||||
if [ "${OPTARG}" = "bootloader" ]; then
|
if [ "${OPTARG}" = "bootloader" ]; then
|
||||||
@@ -716,6 +718,11 @@ while getopts A:adhif:m:ju:r option; do
|
|||||||
;;
|
;;
|
||||||
j) JSON_OUTPUT="yes"
|
j) JSON_OUTPUT="yes"
|
||||||
;;
|
;;
|
||||||
|
l)
|
||||||
|
getBootloaderUpdateVersion
|
||||||
|
echo "${BOOTLOADER_UPDATE_IMAGE}"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
m) MACHINE_OUTPUT="${OPTARG}"
|
m) MACHINE_OUTPUT="${OPTARG}"
|
||||||
;;
|
;;
|
||||||
h) usage
|
h) usage
|
||||||
|
|||||||
Reference in New Issue
Block a user