summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-05-17 01:56:15 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-05-17 01:56:15 +0000
commit62fade570951964115136f2cd47487633cd529be (patch)
treef42fff4c3fddfd8d603a871b2a9175c11e865785
parent112d053284baf321a8529690f6483709ae6f4acb (diff)
libs/core: make sure that bitlib is loaded, fixes some sdk problems
-rw-r--r--libs/core/luasrc/init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/core/luasrc/init.lua b/libs/core/luasrc/init.lua
index 81a65b181..dc91a36a0 100644
--- a/libs/core/luasrc/init.lua
+++ b/libs/core/luasrc/init.lua
@@ -26,6 +26,11 @@ limitations under the License.
local require = require
+-- Make sure that bitlib is loaded
+if not _G.bit then
+ _G.bit = require "bit"
+end
+
module "luci"
local v = require "luci.version"