gluon-core: add sh file to get model name etc.

This commit is contained in:
Matthias Schiffer 2014-01-12 21:26:48 +01:00
parent 877e1acd83
commit 37c0716b9b
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
. /lib/functions.sh
# This must be generalized as soon as we support other OpenWRT archs
. /lib/ar71xx.sh
ar71xx_board_detect
local board_name="$AR71XX_BOARD_NAME"
local model="$AR71XX_MODEL"
get_arch() {
echo 'ar71xx'
}
get_board_name() {
echo "$board_name"
}
get_model() {
echo "$model"
}