summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-10-11 12:07:35 +0200
committerJo-Philipp Wich <jow@openwrt.org>2014-10-11 12:07:35 +0200
commit52326c28efacd6b6eadaf7bab72b8ec633192a00 (patch)
treea9e4f6d6530d5c8d810bd9c07652e9413040a619 /modules
parent7ee4e9c78acccd7bdb6ec33a464bc67459068641 (diff)
parent90c0e4dad4a4d02ea7207a3ac9c5d76001ab069d (diff)
Merge pull request #220 from Wedmer/openvpnfix_dtfix_watchcatfix
applications/luci-openvpn: fixes for current openWRT openvpn packages.
Diffstat (limited to 'modules')
-rw-r--r--modules/base/luasrc/sys.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/base/luasrc/sys.lua b/modules/base/luasrc/sys.lua
index df6280dda..3a04f6bad 100644
--- a/modules/base/luasrc/sys.lua
+++ b/modules/base/luasrc/sys.lua
@@ -186,6 +186,7 @@ function sysinfo()
cpuinfo:match("model name\t+: ([^\n]+)")
local model =
+ fs.readfile("/proc/device-tree/model") or
luci.util.pcdata(fs.readfile("/tmp/sysinfo/model")) or
cpuinfo:match("machine\t+: ([^\n]+)") or
cpuinfo:match("Hardware\t+: ([^\n]+)") or