![]() |
#1 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jun 2013
Device: kobo touch
|
Kobo touch update sqllite-script
hey folks,
i installed ftp/telnet on firmware 3.0.0.1 to transfer books via wifi-ftp. Works great but i need a script to update the sqllite database without connecting the usb-cable after transfer books via ftp... i found this hint but it does not work: (source: http://blog.ringerc.id.au/2011/01/en...s-to-kobo.html) BloGollumFebruary 21, 2011 at 2:26 AM If you add content via ftp, it is good to refresh the database to show it without having to to plug in and remove the USB, which triggers the necessary SQLite sync. The below (complete kludge of a) script mimics the USB trigger. It could be added to startup, in the way Craig outlines, so that a restart syncs, or run through telnet. Ultimately, it would be good to put it behind a key (although a script to enable WiFi with a button would be a higher priority IMV.) #!/bin/sh echo "\"adding\"" SN=KBN647095B46990 ACTION=add /usr/local/Kobo/udev/usb echo "sleeping" sleep 10 # (Prob superfluous) echo "\"removing\"" ACTION=remove /usr/local/Kobo/udev/usb return 0 Last edited by epubfan; 01-17-2014 at 11:25 PM. |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Did you also try the other suggestion?
Code:
echo usb plug remove >>/tmp/nickel-hardware-status Quote:
Last edited by tshering; 01-18-2014 at 06:46 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jun 2013
Device: kobo touch
|
Thanks, tshering. I haven`t seen it and it works... partly :-)
So I do this script now: #!/bin/sh echo usb plug add >> /tmp/nickel-hardware-status sleep 5 echo usb plug remove >>/tmp/nickel-hardware-status The sleep is necessary to touch on kobo the "connect" requester. Any suggestion to add this function to the script above (so you don`t have to push the "connect" on the kobo)? Last edited by epubfan; 01-18-2014 at 09:49 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Touch Update Kobo Touch via external SD card | andreib | Kobo Reader | 5 | 09-15-2013 04:03 AM |
Kobo Touch firmware update failure | crunchycookie | Kobo Reader | 2 | 05-16-2013 11:20 AM |
Calibre Install/Update Script for OS X | faraz | Calibre | 2 | 11-11-2012 12:16 PM |
Kobo Touch update has broken Calibre created top margin | DragonflyKing | Conversion | 3 | 07-20-2012 03:59 AM |
Update script does not work | rusHack | Kindle Developer's Corner | 9 | 06-21-2012 08:55 PM |