Pastebin

Paste #1148: udev scripts

< previous paste - next paste>

Pasted by tdn

Download View as text

>> 10-tdn-copy-drive.rules <<
BUS=="scsi"
SUBSYSTEM=="block"
ACTION=="add"
RUN+="/usr/local/bin/copy-drive.sh %n"

>> /usr/local/bin/copy-drive.sh <<
#!/bin/sh
DEVICE=$1
alias isodate='date --iso-8601'
dd_rescue $DEVICE /var/tmp/$(isodate).bin


New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.