Then when you reboot the script will run in the background, checking every 2 seconds if the reader is on the PCI bus, ie which happens when you insert a card. It quits once the reader is detected.
You can start it immediately (without rebooting) with:
Another option is to use the attached script, which automates the process of detecting the reader, so you don't have to press a hotkey.
* copy the attached file scan_sd_reader.sh to /etc/init.d/ and make it executable:
sudo cp scan_sd_reader.sh /etc/init.d && sudo chmod +x /etc/init. d/scan_ sd_reader. sh
* make it run at startup:
sudo update-rc.d scan_sd_reader.sh defaults
Then when you reboot the script will run in the background, checking every 2 seconds if the reader is on the PCI bus, ie which happens when you insert a card. It quits once the reader is detected.
You can start it immediately (without rebooting) with:
sudo /etc/init. d/scan_ sd_reader. sh