View Single Post
Old 01-05-2016, 08:43 AM   #72
refj
Junior Member
refj began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2015
Device: Kobo Glo HD
Quote:
Originally Posted by tshering View Post
KSM does currently not run user scripts on startup. You could modify rcS, ksmhome.sh, or - maybe better for your purpose - /adds/kbmenu/onstart/start_nickel.sh.

You could replace in ksmhome.sh
Code:
bouncer=$ksmroot/kbbouncer/kbbouncer.sh
by
Code:
bouncer=$ksmroot/kbbouncer/kbbouncer90.sh
This would only effect the password check at start up.

Or you could rename kbbouncer90.sh to kbbouncer.sh.
Thanks. I had recently ended up modifying start_nickel.sh and ksmhome.sh, just as you advise.

In fact, here's my startup tile-bumping script, in case it benefits someone else too. Note that I haven't bothered with proper resolution of filepaths so this is just for the Kobo Glo HD for all I know.
Spoiler:

Code:
#!/bin/sh
/adds/kbmenu/tools/sqlite3 /mnt/onboard/.kobo/KoboReader.sqlite <<'EOF'

-- Noise

UPDATE "Activity" SET "Enabled" = 0 WHERE Type = "GlobalStats";
UPDATE "Activity" SET "Enabled" = 0 WHERE Type = "Sync";

-- Games (no chess since it's gone in the last version of nickel)

Delete from Activity where Type like "Extras" and Id like "scramble" ;
insert into Activity
SELECT "scramble",Enabled,Type,Action,strftime("%Y-%m-%dT%H:%m:%S"),Data from Activity where Type like "Extras" and Id like "browser";

Delete from Activity where Type like "Extras" and Id like "sudoku" ;
insert into Activity
SELECT "sudoku",Enabled,Type,Action,strftime("%Y-%m-%dT%H:%m:%S"),Data from Activity where Type like "Extras" and Id like "browser";

Delete from Activity where Type like "Extras" and Id like "rushhour" ;
insert into Activity
SELECT "rushhour",Enabled,Type,Action,strftime("%Y-%m-%dT%H:%m:%S"),Data from Activity where Type like "Extras" and Id like "browser";

Delete from Activity where Type like "Extras" and Id like "solitaire" ;
insert into Activity
SELECT "solitaire",Enabled,Type,Action,strftime("%Y-%m-%dT%H:%m:%S"),Data from Activity where Type like "Extras" and Id like "browser";

Delete from Activity where Type like "Extras" and Id like "sketch" ;
insert into Activity
SELECT "sketch",Enabled,Type,Action,strftime("%Y-%m-%dT%H:%m:%S"),Data from Activity where Type like "Extras" and Id like "browser";

-- Funny swapping for the browser

Delete from Activity where Type like "Extras" and Id like "browserTmp" ;
insert into Activity
SELECT "browserTmp",Enabled,Type,Action,strftime("%Y-%m-%dT%H:%m:%S"),Data from Activity where Type like "Extras" and Id like "browser";

Delete from Activity where Type like "Extras" and Id like "browser" ;
Update Activity set Id = "browser" where Id = "browserTmp";

-- kbmenupngs

Delete from Activity where Id = "file:///mnt/onboard/kbmenupngs/exit_nickel.png";
Insert into Activity values ("file:///mnt/onboard/kbmenupngs/exit_nickel.png",1,"RecentBook",2,"3100-01-01T00:00:00",X'00000000');

Delete from Activity where Id = "file:///mnt/onboard/kbmenupngs/toggle_nightmode.png";
Insert into Activity values ("file:///mnt/onboard/kbmenupngs/toggle_nightmode.png",1,"RecentBook",2,"3101-01-01T00:00:00",X'00000000');

EOF


Quote:
Originally Posted by tshering View Post
It forces a power off if you hold it for 20 seconds or so. It wakes up the device from suspend.
I see, thanks.


And yet another question: If I sideload books while outside of nickel, is there a way to force it to rescan my sd card?
refj is offline   Reply With Quote