Moved luci.sys.libpath to luci.util
[project/luci.git] / libs / core / luasrc / sys.lua
index c291f67..14a2f29 100644 (file)
@@ -24,7 +24,7 @@ limitations under the License.
 
 ]]--
 
---- LuCI system utilities.
+--- LuCI Linux and POSIX system utilities.
 module("luci.sys", package.seeall)
 require("posix")
 require("luci.bits")
@@ -70,12 +70,6 @@ function httpget(url, stream)
        return source("wget -qO- '"..url:gsub("'", "").."'")
 end
 
---- Returns the absolute path to LuCI base directory.
--- @return             String containing the directory path
-function libpath()
-       return luci.fs.dirname(require("luci.debug").__file__)
-end
-
 --- Returns the system load average values.
 -- @return     String containing the average load value 1 minute ago
 -- @return     String containing the average load value 5 minutes ago