adjust keycodes for k4 & add device.lua

This commit is contained in:
Qingping Hou
2012-06-13 21:27:38 +08:00
parent 51ed793d14
commit 2d104d7792
3 changed files with 48 additions and 7 deletions

26
frontend/ui/device.lua Normal file
View File

@@ -0,0 +1,26 @@
function util.isKindle4()
re_val = os.execute("cat /proc/cpuinfo | grep MX50")
if re_val == 0 then
return true
else
return false
end
end
function util.isKindle3()
re_val = os.execute("cat /proc/cpuinfo | grep MX35")
if re_val == 0 then
return true
else
return false
end
end
function util.isKindle2()
re_val = os.execute("cat /proc/cpuinfo | grep MX3")
if re_val == 0 then
return true
else
return false
end
end