Thanks. (Please remember to uninstall it.)
The fsl-usb2-udc rule is only run once for "add", this should be during device bootup. Later on it didn't run again. So it seems this can't be relied upon and I'll have to find another way.
Without the fsl-usb2-udc event there simply is no notification as to when the "Connect" button is pressed. I'll have to inotify watch some file to receive the unmount event when Kobo unmounted the filesystem to be exported via USB.
And then hope the USB plug remove event is called instantly enough to still make things work on unplugging, where AutoShelf freezes nickel to modify the database before nickel checks it for collection and other changes.
I'll see what I can do.
|