Commit 07e365b7 authored by Florent Revest's avatar Florent Revest

usb-moded: Installs a com.meego.usb_moded.service so that usb-moded can be...

usb-moded: Installs a com.meego.usb_moded.service so that usb-moded can be started dynamically by DBus (fixes a boot error message)
parent cf9e6117
[D-BUS Service]
Name=com.meego.usb_moded
Exec=
SystemdService=usb-moded.service
...@@ -5,7 +5,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5f30f0716dfdd0d91eb439ebec522ec2" ...@@ -5,7 +5,8 @@ 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.service \
file://usb-moded.ini" file://usb-moded.ini \
file://com.meego.usb_moded.service"
SRCREV = "eecb0b4c4347f8447bc78c562f4ac5fcee97aedb" SRCREV = "eecb0b4c4347f8447bc78c562f4ac5fcee97aedb"
PR = "r1" PR = "r1"
PV = "+git${SRCPV}" PV = "+git${SRCPV}"
...@@ -52,6 +53,9 @@ do_install_append() { ...@@ -52,6 +53,9 @@ do_install_append() {
install -m 644 -D ../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
install -d ${D}/usr/share/dbus-1/services/
install -m 644 -D ../com.meego.usb_moded.service ${D}/usr/share/dbus-1/services/com.meego.usb_moded.service
# TODO: we currently disable the rescue mode # TODO: we currently disable the rescue mode
# install -m 644 -D systemd/usb-moded-args.conf ${D}/var/lib/environment/usb-moded/usb-moded-args.conf # install -m 644 -D systemd/usb-moded-args.conf ${D}/var/lib/environment/usb-moded/usb-moded-args.conf
install -m 755 -D systemd/turn-usb-rescue-mode-off ${D}/usr/bin/turn-usb-rescue-mode-off install -m 755 -D systemd/turn-usb-rescue-mode-off ${D}/usr/bin/turn-usb-rescue-mode-off
...@@ -68,4 +72,4 @@ do_install_append() { ...@@ -68,4 +72,4 @@ do_install_append() {
rm ${D}/etc/usb-moded/run/udhcpd-connection-sharing.ini ${D}/etc/usb-moded/run/udhcpd-developer-mode.ini ${D}/etc/usb-moded/run/udhcpd-adb-mode.ini ${D}/etc/usb-moded/run/vfat.ini ${D}/etc/usb-moded/run/mtp.ini rm ${D}/etc/usb-moded/run/udhcpd-connection-sharing.ini ${D}/etc/usb-moded/run/udhcpd-developer-mode.ini ${D}/etc/usb-moded/run/udhcpd-adb-mode.ini ${D}/etc/usb-moded/run/vfat.ini ${D}/etc/usb-moded/run/mtp.ini
} }
FILES_${PN} += " /lib/systemd/system " FILES_${PN} += " /lib/systemd/system /usr/share/dbus-1/services/"
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