gluon-core: add sh file to get model name etc.
This commit is contained in:
parent
a2329773eb
commit
13e3d7ff79
22
package/gluon-core/files/lib/gluon/functions/model.sh
Normal file
22
package/gluon-core/files/lib/gluon/functions/model.sh
Normal 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"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user