I also tried this code
Code:
qndb -t 60000 -s pfmDoneProcessing -m pfmRescanBooksFull
echo usb plug add >>/tmp/nickel-hardware-status
sleep 10
echo usb plug remove >>/tmp/nickel-hardware-status
The problem here is even though I have a 60 second timeout for qndb, it seems to return immediately and thus the scan doesn't finish in time. Any idea why it's not waiting?