. /lib/ar71xx.sh
PART_NAME=firmware
+RAMFS_COPY_DATA=/lib/ar71xx.sh
platform_check_image() {
local board=$(ar71xx_board_name)
}
return 0
;;
- tl-wr941nd)
+ tl-wr741nd | tl-wr941nd)
[ "$magic" != "0100" ] && {
echo "Invalid image type."
return 1
}
return 0
;;
+ wrt160nl)
+ [ "$magic" != "4e4c" ] && {
+ echo "Invalid image type."
+ return 1
+ }
+ return 0
+ ;;
esac
echo "Sysupgrade is not yet supported on $board."
return 1
}
}
+
append sysupgrade_pre_upgrade disable_watchdog