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/index.html | 8 ++++++--
doc/mdevd.html | 28 ++++++++++++++++++++++++++++
doc/upgrade.html | 12 ++++++++++++
3 files changed, 46 insertions(+), 2 deletions(-)
(limited to 'doc')
diff --git a/doc/index.html b/doc/index.html
index 0f03ac9..d6ea237 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -98,9 +98,13 @@ and does not pull in any unnecessary code.
The Linux kernel must be 2.6.10 or later.
GNU make, version 3.81 or later
skalibs version
-2.10.0.0 or later. It's a build-time requirement. It's also a run-time
+2.10.0.2 or later. It's a build-time requirement. It's also a run-time
requirement if you link against the shared version of the skalibs
library.
+ Optionally: execline
+version 2.8.0.0 or later. It's a only a run-time requirement, and only
+if your mdev.conf file contains +, - or
+& command directives.
Licensing
@@ -114,7 +118,7 @@ library.
- The current released version of mdevd is
-0.1.3.0.
+0.1.4.0.
- Alternatively, you can checkout a copy of the
mdevd
git repository:
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
diff --git a/doc/upgrade.html b/doc/upgrade.html
index 7775575..90fdac3 100644
--- a/doc/upgrade.html
+++ b/doc/upgrade.html
@@ -18,6 +18,18 @@
What has changed in mdevd
+ in 0.1.4.0
+
+
+ - skalibs
+dependency bumped to 2.10.0.2.
+ - New +, - and & command
+directives supported in mdev.conf. These directives
+spawn a command interpreted by the
+execlineb
+program launcher instead of /bin/sh.
+
+
in 0.1.3.0