From e080fcebd2396c138d8c916d1cf385a88e0db246 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 8 Aug 2008 12:26:45 +0000 Subject: libs/core: Cleaned up luci.sys in favor of the new luci.ip module --- modules/freifunk/luasrc/controller/freifunk/luciinfo.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/freifunk/luasrc/controller') diff --git a/modules/freifunk/luasrc/controller/freifunk/luciinfo.lua b/modules/freifunk/luasrc/controller/freifunk/luciinfo.lua index 4ab63a068a..5ddb791fe2 100644 --- a/modules/freifunk/luasrc/controller/freifunk/luciinfo.lua +++ b/modules/freifunk/luasrc/controller/freifunk/luciinfo.lua @@ -28,7 +28,7 @@ function action_index() -- Sysinfo local s, m, r = luci.sys.sysinfo() local dr = luci.sys.net.defaultroute() - dr = dr and luci.sys.net.hexip4(dr.Gateway) or "" + dr = dr and luci.ip.Hex(dr.Gateway, 32, luci.ip.FAMILY_INET4):string() local l1, l5, l15 = luci.sys.loadavg() luci.http.write("sysinfo.system=" .. sanitize(s) .. "\n") @@ -38,7 +38,7 @@ function action_index() luci.http.write("sysinfo.load1=" .. tostring(l1) .. "\n") luci.http.write("sysinfo.load5=" .. tostring(l5) .. "\n") luci.http.write("sysinfo.load15=" .. tostring(l15) .. "\n") - luci.http.write("sysinfo.defaultgw=" .. dr .. "\n") + luci.http.write("sysinfo.defaultgw=" .. dr or "" .. "\n") -- Freifunk -- cgit v1.2.3