No way of using the existing /bin/kobo_config.sh to return the Kobo model info via Device:getModel() ?
Ah... I see all they are doing currently is looking for the presence of that file to set a flag kg_test_fd if that script exists.
Presumably some code similar to the lines
Code:
local std_out = io.popen("grep 'MX' /proc/cpuinfo | cut -d':' -f2 | awk {'print $2'}", "r")
local cpu_mod = std_out:read()
but to execute the script and return the model type
ie
Code:
elseif kg_test_fd then
local std_out = io.popen("/bin/kobo_config.sh", "r")
local kobo_model = std_out:read()
self.model = kobo_model
Of course this would have the side effect of rather than using Kobo throughout for model, it would use trilogy / kraken / pixie / phoenix