From e858b1abcc89a0449cc7a53d0532373dedd1450f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 27 Oct 2015 18:02:07 -0400 Subject: board_get_chip(): New function --- (limited to 'src') diff --git a/src/board.sh b/src/board.sh index 12b86cf..42a123d 100644 --- a/src/board.sh +++ b/src/board.sh @@ -19,6 +19,8 @@ board_functions='get_name get_id match get_dists' boards='' +board_chip='' + register_board() { local board="${1}" @@ -46,7 +48,14 @@ find_board() for fn in ${board_functions}; do eval "board_${fn}() { board_${board}_${fn} \"\${@}\"; }" done + board_chip="${chip}" return 0 done return 1 } + +board_get_chip() +{ + printf '%s' "${board_chip}" + return 0 +} -- cgit v0.9.1