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 a2329773eb
commit 13e3d7ff79

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"
}