summaryrefslogtreecommitdiffhomepage
path: root/libs/core
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-15 17:45:10 +0000
committerSteven Barth <steven@midlink.org>2008-06-15 17:45:10 +0000
commiteae0e447989a1a37ce6cb8df9f1f353738aab4f6 (patch)
tree4d8568109967259150413e873af2592a6f975373 /libs/core
parent3455ee6d8d9eb3c0ee8459adb586a800dadaf737 (diff)
* Added support for CGI SGI
Diffstat (limited to 'libs/core')
-rw-r--r--libs/core/luasrc/sys.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/core/luasrc/sys.lua b/libs/core/luasrc/sys.lua
index 80d702b94..17caa7824 100644
--- a/libs/core/luasrc/sys.lua
+++ b/libs/core/luasrc/sys.lua
@@ -75,6 +75,9 @@ function flash(image, kpattern)
return os.execute(cmd)
end
+-- Returns the enivornment
+getenv = posix.getenv
+
-- Returns the hostname
function hostname()
return io.lines("/proc/sys/kernel/hostname")()