mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Added draft for auto-usb-backup
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ATTRS{idVendor}=="152d", ATTRS{idProduct}=="2329", RUN+="/tmp/test.sh"
|
@@ -0,0 +1,8 @@
|
||||
#! /bin/sh
|
||||
|
||||
env >>/tmp/test.log
|
||||
file "/sys${DEVPATH}" >>/tmp/test.log
|
||||
|
||||
if [ "${ACTION}" = add -a -d "/sys${DEVPATH}" ]; then
|
||||
echo "add ${DEVPATH}" >>/tmp/test.log
|
||||
fi
|
Reference in New Issue
Block a user