@WS64: When you said "USB activated" you meant usbnet, shared storage or just connected to a power adaptor?
AFAIK usb attach/deattach are handled by udev rules. If you are on Start Menu, or koreader or any other program started from /mnt/onboard and you start usb storage mode this location becomes invalid cause the system umounts it to share via usb
@tshering: first of all, nice work

. I want to say you two things:
1- last commit >
https://github.com/koreader/koreader...05153fec132f20 change default starting script from koreader_kobo.sh to koreader.sh
2- I was thinking to make koreader.sh for kobos more dynamic (being able to start koreader with a custom file or dirpath or even with last document opened). Are you interested in those options? If we make this kindle like we'll get something like this:
start koreader with filemanager in /mnt/onboard: /mnt/onboard/.kobo/koreader/koreader.sh /mnt/onboard
start koreader with example content: /mnt/onboard/koreader/koreader.sh /mnt/onboard/pdf/test.pdf
start koreader with filemanager in custom folder: /mnt/onboard/.kobo/koreader/koreader.sh /mnt/onboard/pdf/custom
start koreader with last opened document: /mnt/onboard/,kobo/koreader/koreader.sh
Any thoughts?