From 9358ede0e510fe25cf26fd6cc349395ac8bc8558 Mon Sep 17 00:00:00 2001
From: Laurent Bercot
Date: Tue, 23 Feb 2021 17:18:38 +0000
Subject: Prepare for 1.0.4.0; new +,-,& directives for execlineb cmd interp
---
doc/mdevd.html | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
(limited to 'doc/mdevd.html')
diff --git a/doc/mdevd.html b/doc/mdevd.html
index 3412253..58568cd 100644
--- a/doc/mdevd.html
+++ b/doc/mdevd.html
@@ -151,6 +151,34 @@ configuration where it can create device nodes as root or delete them, and does
nothing else.
+ execline command support
+
+
+ In addition to the traditional shell command spawning via the @,
+$ and * directives, mdevd also supports spawning a command
+with the
+execlineb
+launcher:
+
+
+
+ - +cmd : spawns execlineb -Pc cmd
+when this line catches an event that has ACTION=add. This is the
+equivalent of @cmd.
+ - -cmd : spawns execlineb -Pc cmd
+when this line catches an event that has ACTION=remove. This is the
+equivalent of $cmd.
+ - &cmd : spawns execlineb -Pc cmd
+when this line catches an event no matter its action type. This is the
+equivalent of *cmd.
+
+
+
+ Note that unlike /bin/sh, execlineb is spawned without an
+absolute path, so in order for +, - and & to
+work, the execlineb command must be available in mdevd's PATH.
+
+
Notes