On Sep 7, 2015 2:53 PM, "Buck Evan" <[email protected]> wrote:
>
Here you go. I made a few minor changes after this thread started (pulling
the fdmove into the background block for example) which are reflected here:

#!/command/execlineb -P
fdmove -c 2 1
background -d
{
  fdmove 1 3
  loopwhilex -o 1
  ifelse { /bin/udevadm control --reload-rules } { echo }
  foreground { sleep 1 }
  exit 1
}
fdclose 3
/lib/systemd/systemd-udevd

`udevadm control --reload-rules' is the closest I've found to a udev
availability test, hence why I'm calling it here. If someone knows of a
better method, I'm all ears.

Cheers!

Reply via email to