From 13e3d7ff794d53c630040a9fec00beff70522524 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 12 Jan 2014 21:26:48 +0100 Subject: [PATCH] gluon-core: add sh file to get model name etc. --- .../files/lib/gluon/functions/model.sh | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/gluon-core/files/lib/gluon/functions/model.sh diff --git a/package/gluon-core/files/lib/gluon/functions/model.sh b/package/gluon-core/files/lib/gluon/functions/model.sh new file mode 100644 index 00000000..2d2f99ce --- /dev/null +++ b/package/gluon-core/files/lib/gluon/functions/model.sh @@ -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" +}