View Single Post
Old 07-06-2013, 11:53 PM   #83
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,540
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
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

Last edited by PeterT; 07-07-2013 at 12:00 AM.
PeterT is offline   Reply With Quote