diff options
Diffstat (limited to 'board/pm9263/env/bin/init')
-rw-r--r-- | board/pm9263/env/bin/init | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/board/pm9263/env/bin/init b/board/pm9263/env/bin/init index b8d8399842..02f5cd415b 100644 --- a/board/pm9263/env/bin/init +++ b/board/pm9263/env/bin/init @@ -4,16 +4,34 @@ PATH=/env/bin export PATH . /env/config +if [ -e /dev/nor0 ]; then + addpart /dev/nor0 $nor_parts +fi + +if [ -e /dev/nand0 ]; then + addpart /dev/nand0 $nand_parts + + # Uh, oh, hush first expands wildcards and then starts executing + # commands. What a bug! + source /env/bin/hush_hack +fi + +if [ -z $eth0.ethaddr ]; then + while [ -z $eth0.ethaddr ]; do + readline "no MAC address set for eth0. please enter the one found on your board: " eth0.ethaddr + done + echo -a /env/config "eth0.ethaddr=$eth0.ethaddr" +fi echo echo -n "Hit any key to stop autoboot: " timeout -a $autoboot_timeout if [ $? != 0 ]; then echo - echo "type update_kernel [<imagename>] to update kernel into flash" - echo "type udate_root [<imagename>] to update rootfs into flash" + echo "type update_kernel nor [<imagename>] to update kernel into flash" + echo "type update_root nor [<imagename>] to update rootfs into flash" echo exit fi -boot
\ No newline at end of file +boot |