Another alternative could be using udev rules, as in this post:
What’s nice about udev and amidiauto is that they react to hardware change events, rather than running periodically.
Another alternative could be using udev rules, as in this post:
What’s nice about udev and amidiauto is that they react to hardware change events, rather than running periodically.