Commit 9f17c9a9 authored by Florent Revest's avatar Florent Revest

usb-moded: use a custom service for faster boot time

parent 9cf3b046
[Unit]
Description=usb-moded USB gadget controller
DefaultDependencies=no
Requires=dbus.socket
After=local-fs.target dbus.socket
Conflicts=shutdown.target
[Service]
Type=notify
TimeoutSec=15
EnvironmentFile=-/var/lib/environment/usb-moded/*.conf
EnvironmentFile=-/run/usb-moded/*.conf
ExecStart=/usr/sbin/usb_moded --systemd --force-syslog $USB_MODED_ARGS
Restart=always
ExecReload=/bin/kill -HUP $MAINPID
BusName=com.meego.usb_moded
[Install]
WantedBy=multi-user.target
......@@ -4,6 +4,7 @@ LICENSE = "LGPL-2.1+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5f30f0716dfdd0d91eb439ebec522ec2"
SRC_URI = "git://github.com/philippedeswert/usb-moded.git;protocol=https \
file://usb-moded.service \
file://usb-moded.ini"
SRCREV = "eecb0b4c4347f8447bc78c562f4ac5fcee97aedb"
PR = "r1"
......@@ -47,7 +48,7 @@ do_install_append() {
touch ${D}/etc/udhcpd.conf
install -d ${D}/lib/systemd/system/multi-user.target.wants/
install -m 644 -D systemd/usb-moded.service ${D}/lib/systemd/system/usb-moded.service
install -m 644 -D ../usb-moded.service ${D}/lib/systemd/system/usb-moded.service
ln -s ../usb-moded.service ${D}/lib/systemd/system/multi-user.target.wants/usb-moded.service
# TODO: we currently disable the rescue mode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment