summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-27 21:16:00 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-27 21:16:00 (EDT)
commit8511b1e7a4f91e61b3e0afb66919afb72d046557 (patch)
tree4d6ff2b8ea11988558eb8c5d15dc49f564dfcbb6
parent6e91cf0fdc0d4236e1ff91969dcd042f0b7907fb (diff)
downloadfirman.sh-8511b1e7a4f91e61b3e0afb66919afb72d046557.zip
firman.sh-8511b1e7a4f91e61b3e0afb66919afb72d046557.tar.gz
firman.sh-8511b1e7a4f91e61b3e0afb66919afb72d046557.tar.bz2
board_get(): New function
-rw-r--r--src/board.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/board.sh b/src/board.sh
index 42a123d..624d88d 100644
--- a/src/board.sh
+++ b/src/board.sh
@@ -19,6 +19,7 @@ board_functions='get_name get_id match get_dists'
boards=''
+board=''
board_chip=''
register_board()
@@ -36,7 +37,6 @@ find_board()
local part="${2}"
local chip="${3}"
shift 3
- local board=
local fn=
for board in ${boards}; do
@@ -51,9 +51,16 @@ find_board()
board_chip="${chip}"
return 0
done
+ board=''
return 1
}
+board_get()
+{
+ printf '%s' "${board}"
+ return 0
+}
+
board_get_chip()
{
printf '%s' "${board_chip}"