mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
436 B
Lua
27 lines
436 B
Lua
12 years ago
|
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
|