mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-21 06:13:33 +08:00
Change "update required" message to "update available"
Originally, rpi-eeprom-update was only for critically important security or hardware compatibility requirements. Change the text of rpi-eeprom-update to indicate that an update is available rather than being required. N.B. The systemd service runs with the -a flag which automatically applies available updates because most users just use the release folder which is only updated for major/critical updates.
This commit is contained in:
@@ -448,7 +448,7 @@ EOF
|
|||||||
printVersions()
|
printVersions()
|
||||||
{
|
{
|
||||||
if [ "${ACTION_UPDATE_BOOTLOADER}" = 1 ]; then
|
if [ "${ACTION_UPDATE_BOOTLOADER}" = 1 ]; then
|
||||||
echo "BOOTLOADER: update required"
|
echo "BOOTLOADER: update available"
|
||||||
else
|
else
|
||||||
echo "BOOTLOADER: up-to-date"
|
echo "BOOTLOADER: up-to-date"
|
||||||
fi
|
fi
|
||||||
@@ -458,7 +458,7 @@ printVersions()
|
|||||||
echo " FW DIR: ${FIRMWARE_IMAGE_DIR}"
|
echo " FW DIR: ${FIRMWARE_IMAGE_DIR}"
|
||||||
|
|
||||||
if [ "${ACTION_UPDATE_VL805}" = 1 ]; then
|
if [ "${ACTION_UPDATE_VL805}" = 1 ]; then
|
||||||
echo "VL805: update required"
|
echo "VL805: update available"
|
||||||
else
|
else
|
||||||
if [ "$(id -u)" = "0" ]; then
|
if [ "$(id -u)" = "0" ]; then
|
||||||
echo "VL805: up-to-date"
|
echo "VL805: up-to-date"
|
||||||
@@ -621,7 +621,7 @@ checkVersion()
|
|||||||
lookupVersionInfo
|
lookupVersionInfo
|
||||||
|
|
||||||
if [ "${BOOTLOADER_UPDATE_VERSION}" -gt "${BOOTLOADER_CURRENT_VERSION}" ]; then
|
if [ "${BOOTLOADER_UPDATE_VERSION}" -gt "${BOOTLOADER_CURRENT_VERSION}" ]; then
|
||||||
echo "*** UPDATE REQUIRED ***"
|
echo "*** UPDATE AVAILABLE ***"
|
||||||
printVersions
|
printVersions
|
||||||
write_status_info "EXIT_UPDATE_REQUIRED"
|
write_status_info "EXIT_UPDATE_REQUIRED"
|
||||||
exit ${EXIT_UPDATE_REQUIRED}
|
exit ${EXIT_UPDATE_REQUIRED}
|
||||||
|
|||||||
Reference in New Issue
Block a user