Originally Posted by
Carl Hamlin
I'm not entirely sure I understand what you're wanting to do. There me be a language barrier issue here, but it sounds like you're wanting to create a mounted device instance without actually mounting a device. Is this correct?
I add this code to file /etc/udev/rules.d/60-persistent-storage.rules
Code:
KERNEL=="sdb1", ATTRS{vendor}=="xxx", ATTRS{model}=="xxx", RUN+="xxx.sh", GOTO="persistent_storage_end"
so each time I plug in my usb flash drive, xxx.sh script will run and do the sync I want.
now my question is
how I can do this through cron at any time I want not just the time I plug in usb flash drive.
Bookmarks