1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

man: provide an example how to plug systemd-mount into udev

Prompted by: #11982
This commit is contained in:
Lennart Poettering 2019-03-14 10:12:36 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent d55e43344b
commit 1e4960b86d

View File

@ -303,6 +303,15 @@
</variablelist>
</refsect1>
<refsect1>
<title>Example</title>
<para>Use a udev rule like the following to automatically mount all USB storage plugged in:</para>
<programlisting>ACTION=="add", SUBSYSTEMS=="usb", SUBSYSTEM=="block", ENV{ID_FS_USAGE}=="filesystem", \
RUN{program}+="/usr/bin/systemd-mount --no-block --automount=yes --collect $devnode"</programlisting>
</refsect1>
<refsect1>
<title>See Also</title>
<para>