Skip to content

Instantly share code, notes, and snippets.

@paulRbr
Created April 9, 2014 12:44
Show Gist options
  • Save paulRbr/10265568 to your computer and use it in GitHub Desktop.
Save paulRbr/10265568 to your computer and use it in GitHub Desktop.
# Start on mount
SUBSYSTEM=="bdi",ACTION=="add",RUN+="/usr/bin/screen -m -d bash -c 'sleep 5; /usr/bin/dev_clicrdv up'"
# Stop on unmount
SUBSYSTEM=="bdi",ACTION=="remove",RUN+="/usr/bin/screen -m -d bash -c 'sleep 5; /usr/bin/dev_clicrdv halt'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment