e97a5ffafc
Also allow flashing different firmwares via commandline
11 lines
206 B
Bash
Executable file
11 lines
206 B
Bash
Executable file
#!/bin/sh
|
|
bin=frimware.bin
|
|
if [ ! -z "$3" ] ; then
|
|
bin=$3
|
|
fi
|
|
dd if=$3 seek=4 of=/dev/$1 2>/dev/null
|
|
if [ -z "$3" ] ; then
|
|
echo "FLASH done: $1 @ $2"
|
|
else
|
|
echo "=== FLASH of $3 done: $1 @ $2"
|
|
fi
|