diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-10-27 16:03:52 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-10-27 16:25:37 (EDT) |
commit | 2236d60f413facd6841018a1836fc4a7f59e8b19 (patch) | |
tree | 3240e5c6e75f90c3c5c56e8b61dfe5e0a43220b8 /src | |
parent | 38948ca18b00e121ed08a4d7a857cbb2a1b72db7 (diff) | |
download | firman.sh-2236d60f413facd6841018a1836fc4a7f59e8b19.zip firman.sh-2236d60f413facd6841018a1836fc4a7f59e8b19.tar.gz firman.sh-2236d60f413facd6841018a1836fc4a7f59e8b19.tar.bz2 |
select_board(): Rework into a find_board() stub
Diffstat (limited to 'src')
-rw-r--r-- | src/board.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/board.sh b/src/board.sh index 35d2bcf..a806be9 100644 --- a/src/board.sh +++ b/src/board.sh @@ -17,11 +17,13 @@ board_functions='get_name match validate_chip get_dists' -select_board() +find_board() { - local board="${1}" + local board= local fn= + board='x200_8mb' + for fn in ${board_functions}; do eval "board_${fn}() { board_${board}_${fn} \"\${@}\"; }" done |