summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>2019-01-29 11:13:44 +0100
committerLennart Poettering <lennart@poettering.net>2019-02-15 18:16:27 +0100
commit2c633a821eb81b1ce7fcca5e23bbbe41f44be77f (patch)
tree09fc207e3fa99e5d2ad10cdfc875dbe5158ddfd4 /units
parent791cd1599311d2cfffec9cc7d2915b36cbd3047d (diff)
downloadsystemd-2c633a821eb81b1ce7fcca5e23bbbe41f44be77f.tar.gz
units: add usb-gadget target
Linux can be run on a device meant to act as a USB peripheral. In order for a machine to act as such a USB device it has to be equipped with a UDC - USB Device Controller. This patch adds a target reached when UDC becomes available. It can be used for activating e.g. a service unit which composes a USB gadget with configfs and activates it.
Diffstat (limited to 'units')
-rw-r--r--units/usb-gadget.target12
1 files changed, 12 insertions, 0 deletions
diff --git a/units/usb-gadget.target b/units/usb-gadget.target
new file mode 100644
index 0000000000..c666683a98
--- /dev/null
+++ b/units/usb-gadget.target
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: LGPL-2.1+
+#
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Hardware activated USB gadget
+Documentation=man:systemd.special(7)