From 62fade570951964115136f2cd47487633cd529be Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 17 May 2009 01:56:15 +0000 Subject: [PATCH] libs/core: make sure that bitlib is loaded, fixes some sdk problems --- libs/core/luasrc/init.lua | 5 +++++ 1 file changed, 5 insertions(+) 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" -- 2.11.0