dimfish
10089
Upgrade to official OpenWrt from my builds.
Due name incompatibiltity of mtd11 "ubi_kernel" don't upgrade via LUCI!
0. Create backup.
1. Upload openwrt-ipq807x-generic-redmi_ax6-initramfs-factory.ubi to /tmp.
2. Flash initramfs:
ubiformat /dev/mtd11 -f /tmp/openwrt-ipq807x-generic-redmi_ax6-initramfs-factory.ubi
Then in case of no errors:
reboot
3. Download default or create your own firmware-selector.openwrt.org and upload openwrt-ipq807x-generic-redmi_ax6-squashfs-sysupgrade.bin to /tmp.
4. Flash via sysupgrade
sysupgrade -n /tmp/openwrt-ipq807x-generic-redmi_ax6-squashfs-sysupgrade.bin
Restore backup.
In file backup-*.tgz replace everywhere eth0 => wan & eth1-3 => lan1-3:
find etc/config -type f -exec sh -c "cp -a {} {}.orig && cat {}.orig | sed -r 's/\beth0\b/wan/' | sed -r 's/\beth([1-3])\b/lan\1/'>{}" \;