linuxOS_D21X/package/third-party/swupdate/swupdate_end.sh
2024-11-29 16:13:46 +08:00

15 lines
253 B
Bash
Executable File

#!/bin/sh
swu_status=$(fw_printenv -n swu_status 2>/dev/null)
[ x"$swu_status" = x"" ] && {
echo "No OTA upgrade information found"
return
}
if [ x"$swu_status" = "xfinish" ]; then
fw_setenv swu_status
echo "Last OTA upgrade succeeded"
fi