mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
mediatek: filogic: set special upgrade for Asus AX4200 (#11893)
This commit is contained in:
parent
87fe8bb382
commit
735ea0d11e
@ -1,5 +1,16 @@
|
||||
REQUIRE_IMAGE_METADATA=1
|
||||
|
||||
asus_initial_setup()
|
||||
{
|
||||
# initialize UBI if it's running on initramfs
|
||||
[ "$(rootfs_type)" = "tmpfs" ] || return 0
|
||||
|
||||
ubirmvol /dev/ubi0 -N rootfs
|
||||
ubirmvol /dev/ubi0 -N rootfs_data
|
||||
ubirmvol /dev/ubi0 -N jffs2
|
||||
ubimkvol /dev/ubi0 -N jffs2 -s 0x3e000
|
||||
}
|
||||
|
||||
platform_do_upgrade() {
|
||||
local board=$(board_name)
|
||||
|
||||
@ -84,4 +95,14 @@ platform_copy_config() {
|
||||
emmc_copy_config
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
platform_pre_upgrade() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
asus,tuf-ax4200)
|
||||
asus_initial_setup
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user