[shell_enable] cmd_success='sf probe; sf read 0x42000000 0x3a0000 0x8000; mw.b 0x42000003 0x00 1; sf erase 0x3a0000 0x10000; sf write 0x42000000 0x3a0000 0x8000; setenv bootcmd "if tftpboot 0x44000000 openwrt-qualcommax-ipq60xx-datto_ap440-initramfs-uImage.itb; then bootm 0x44000000; else ubi part ubi; ubi read 0x44000000 kernel; bootm 0x44000000; fi"; saveenv; echo Shell enabled, bootcmd updated; reset'