The upstream device-tree files are now using 'gateworks' instead of 'gw'
for compatible. Add this pattern so that the newer boards support
sysupgrade.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Link: https://github.com/openwrt/openwrt/pull/17964
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
local board=$(board_name)
case "$board" in
+ gateworks,imx8m*|\
gw,imx8m*)
return 0
;;
local board=$(board_name)
case "$board" in
+ gateworks,imx8m*|\
gw,imx8m*)
export_bootdevice && export_partdevice diskdev 0 || {
echo "Unable to find root device."
local partdev
case "$board" in
+ gateworks,imx8m*|\
gw,imx8m*)
export_partdevice partdev 1 && {
v "Storing $UPGRADE_BACKUP on /dev/$partdev..."