Hello AlterusPrime, I am glad you like KSM.
Quote:
Originally Posted by AlterusPrime
Yesterday evening i was wondering, "wifi" menu has some wget scripts and i thought i could make it wget my books. But i'm so bad at scripting so the only thing i've achieved is exit_code=1. So here's my first question - is it even possible to do so? Like make a script that would wget books from, for example, http://192.168.1.2 (there's a HTTP server running HFS, generates a webpage with links) to some specific folder, like /mnt/onboard/.books/wgotbooks? If it's possible - could you possibly assist me in achieving this?
|
Do the other wget scripts work? I am asking just to make sure that the wifi connection is working.
How exactly are you trying to download your files? I guess you will
- download an index file from the server with wget
- retrieve the available file names from the index file
- select those file names that have not a counterpart in /mnt/onboard/.books/wgotbooks
- download each selected file with wget
If you are doing it in this way (or similar), you could write the results of each step to a log file in order to find where the error occurs. Or you can run your script via telnet to see what is happening, or you can execute each command individually from telnet.
Quote:
Originally Posted by AlterusPrime
And second question - could i possibly "rename" the menu strings? I don't really like "start vlasovsoftlauncher" line and would like to shorten it to "start coolreader". Just a cosmetic thing but things like that always make us feel more comfortable, right? To do so - should i rename some script or is it not that easy?
|
You would have to do some changes in .adds\kbmenu\onstart\ksmhome.sh. But take care, rcS and this file are the two critical scripts in KSM. A mistake can force you to factory reset the reader. And since ksmhome.sh is likely to be overwritten by future updates, you would have to be applied the changes again and again. On a side note, "start vlasovsoftlauncher" does exactly this, it does not start coolreader.