#!/bin/sh PATH=/env/bin export PATH . /env/config addpart /dev/mtd0 $mtdparts usbserial -s "Mio A701 usb gadget" led keyboard 0 sdcard_override fb0.enable=1 bmp /dev/mtd0.barebox-logo mtd_env_override if [ $? = 0 ]; then echo "Switching to custom environment" /env/init exit fi echo "No custom environment found" echo -n "Hit any key to stop autoboot: " timeout -a $autoboot_timeout if [ $? != 0 ]; then echo echo "Welcome to barebox console" exit fi echo "Booting linux kernel on docg3 chip ..." bootargs="$bootargs mtdparts=mtd0:$mtdparts root=/dev/mtd4" bootm /dev/mtd0.kernel