From 0c1ecbc4378d7c0365d4299cafc3d325b6a1b311 Mon Sep 17 00:00:00 2001 From: Mohammad_Faraji Date: Wed, 22 May 2024 15:06:31 +0330 Subject: [PATCH] Add usb-storage rules In this rule check usb connection --- src/rules/90-usb-storage.rules | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/rules/90-usb-storage.rules diff --git a/src/rules/90-usb-storage.rules b/src/rules/90-usb-storage.rules new file mode 100644 index 0000000..a86bab5 --- /dev/null +++ b/src/rules/90-usb-storage.rules @@ -0,0 +1 @@ +ACTION=="add", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", ENV{ID_FS_USAGE}=="filesystem", RUN+="/usr/bin/sudo /usr/local/bin/usb-storage-action %E{DEVNAME}" \ No newline at end of file