#!/bin/ash SERIAL=/dev/ttyS1 stty -F /dev/ttyS1 speed 115200 -icanon -isig -iexten -echo -icrnl -imaxbel -ignbrk -brkint -opost -onlcr cs8 -parenb clocal echo -ne "7" > $SERIAL sleep 1 echo -ne "10000000\r" > $SERIAL sleep 1 printf "%08x\r" `ls -l image | cut -b 38-42` > $SERIAL sleep 1 cat image > $SERIAL sleep 1 echo -ne 5 > $SERIAL sleep 1 echo 10000000 > $SERIAL