View Single Post
Old 03-08-2015, 04:01 PM   #20
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by tshering View Post
Code:
echo usb plug add >> /tmp/nickel-hardware-status
sleep 5
echo usb plug remove >> /tmp/nickel-hardware-status
OK. That pops up the USB connection dialog (which you actually have to confirm). And if you do that the Kobo crashes because the filesystem is unmounted (normally udev handles mounting but without a real usb event it's missing). So you have to do that in your script as well, and at the right time.

the code I was referring to is this

Code:
echo sd add /dev/mmcblk1p1 >> /tmp/nickel-hardware-status
which (probably) makes it rescan the external SD but not the internal one

And I haven't found a nickel-hardware-status event that would just make nickel go update directly, without involving a dialog... and that's the missing link for the feature the OP asked for

Anyhow... probably too much effort for such a minute detail hehe
frostschutz is offline   Reply With Quote