#!/bin/bash # # This script is run from a UDEV rule. To work within the UDEV framework, it # must run quick like a bunny and not wait on anything, so basically, this # script mostly does nothing except spawn another script in the background, # passing useful environment variables as arguments. (I find the login # option on su is required to completely sever the connection with UDEV). # su -l root /bin/bash -c \ "/usr/local/bin/bg-dammit /bin/bash /usr/local/bin/solidoodle-bg-udev $ACTION $DEVNAME"