Shell script alternative to udev rules, necessary for Ubuntu 12.04