1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh if [ "$1" = menu ]; then boot-menu-add-entry "$0" "nor update" exit fi global.bootm.image="/dev/nor0.update" dtb=/dev/nor0.dtb filetype -s t ${dtb} if [ "$t" = dtb ]; then global.bootm.oftree="${dtb}" fi