diff --git a/package/gluon-core/files/lib/gluon/functions/model.sh b/package/gluon-core/files/lib/gluon/functions/model.sh deleted file mode 100644 index 2d2f99ce..00000000 --- a/package/gluon-core/files/lib/gluon/functions/model.sh +++ /dev/null @@ -1,22 +0,0 @@ -. /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" -} diff --git a/package/gluon-core/files/usr/lib/lua/gluon/model.lua b/package/gluon-core/files/usr/lib/lua/gluon/model.lua deleted file mode 100644 index a09c0672..00000000 --- a/package/gluon-core/files/usr/lib/lua/gluon/model.lua +++ /dev/null @@ -1,21 +0,0 @@ -local util = require 'luci.util' - - -module 'gluon.model' - - --- This must be generalized as soon as we support other OpenWrt archs -local board_name, model = util.exec('. /lib/functions.sh; . /lib/ar71xx.sh; ar71xx_board_detect; echo "$AR71XX_BOARD_NAME"; echo "$AR71XX_MODEL"'):match('([^\n]+)\n([^\n]+)') - - -function get_arch() - return 'ar71xx' -end - -function get_board_name() - return board_name -end - -function get_model() - return model -end