Permalink
Cannot retrieve contributors at this time
5 lines (5 sloc)
482 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| echo usb plug add >>/tmp/nickel-hardware-status # Simulate plugging in the usb | |
| sleep 12 # Wait 12 sec for user to hit connect, and for any processes to run | |
| echo usb plug remove >>/tmp/nickel-hardware-status # Simulate the disconnect of our simulated usb, takes a few sec after the sleep for the change to show up on the device | |
| # When the kobo detects USB connection, it seems to disable wifi, so only run the update after you are finished with uploading/downloading data |