Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
meta-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
meta-nemo
Commits
9f17c9a9
Commit
9f17c9a9
authored
Sep 11, 2016
by
Florent Revest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usb-moded: use a custom service for faster boot time
parent
9cf3b046
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
usb-moded.service
recipes-nemomobile/usb-moded/usb-moded/usb-moded.service
+19
-0
usb-moded_git.bb
recipes-nemomobile/usb-moded/usb-moded_git.bb
+2
-1
No files found.
recipes-nemomobile/usb-moded/usb-moded/usb-moded.service
0 → 100644
View file @
9f17c9a9
[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
recipes-nemomobile/usb-moded/usb-moded_git.bb
View file @
9f17c9a9
...
@@ -4,6 +4,7 @@ LICENSE = "LGPL-2.1+"
...
@@ -4,6 +4,7 @@ LICENSE = "LGPL-2.1+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5f30f0716dfdd0d91eb439ebec522ec2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5f30f0716dfdd0d91eb439ebec522ec2"
SRC_URI = "git://github.com/philippedeswert/usb-moded.git;protocol=https \
SRC_URI = "git://github.com/philippedeswert/usb-moded.git;protocol=https \
file://usb-moded.service \
file://usb-moded.ini"
file://usb-moded.ini"
SRCREV = "eecb0b4c4347f8447bc78c562f4ac5fcee97aedb"
SRCREV = "eecb0b4c4347f8447bc78c562f4ac5fcee97aedb"
PR = "r1"
PR = "r1"
...
@@ -47,7 +48,7 @@ do_install_append() {
...
@@ -47,7 +48,7 @@ do_install_append() {
touch ${D}/etc/udhcpd.conf
touch ${D}/etc/udhcpd.conf
install -d ${D}/lib/systemd/system/multi-user.target.wants/
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
ln -s ../usb-moded.service ${D}/lib/systemd/system/multi-user.target.wants/usb-moded.service
# TODO: we currently disable the rescue mode
# TODO: we currently disable the rescue mode
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment