target/realtek: prepare for OTA

This commit is contained in:
jjm2473 2022-03-29 18:20:01 +08:00
parent 58c0030df3
commit 09b035efcb
2 changed files with 2 additions and 3 deletions

View File

@ -16,6 +16,7 @@ HOST_LN="$(subst ${STAGING_DIR_HOST},$${STAGING_DIR_HOST},$(LN))"
$${HOST_SED} 's/"192.168.1.1"/"192.168.100.1"/' \
"$${IPKG_INSTROOT}/usr/lib/lua/luci/controller/admin/system.lua" \
"$${IPKG_INSTROOT}/usr/lib/lua/luci/controller/admin/ota.lua" \
"$${IPKG_INSTROOT}/etc/board.d/99-default_network"
$${HOST_SED} "s/'192\\.168\\.1\\.1'/'192.168.100.1'/; s/'openwrt\\.lan'/window.location.host/" "$${IPKG_INSTROOT}/www/luci-static/resources/view/system/flash.js"

View File

@ -7,9 +7,7 @@ platform_check_image() {
echo "platform_check_image"
echo "image path/url: $1"
if [ "$KEEP_ALIVE" -ne 0 ]; then
get_image "$@" | tar -Ox config.txt | grep rootfs || return 1
fi
get_image "$@" | tar -Ox config.txt | grep -Fq rootfs || return 1
return 0
}