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
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