target/realtek: prepare for OTA
This commit is contained in:
parent
58c0030df3
commit
09b035efcb
@ -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"
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user