Skip to content
Snippets Groups Projects
Commit 7b7b6b9f authored by Rainer Keller's avatar Rainer Keller
Browse files

Add Emulator sdcardmountd


Change-Id: Ib760d0c25c645b1c44216081c42714f8e9a8ca32
Reviewed-by: default avatarSamuli Piippo <samuli.piippo@theqtcompany.com>
parent bcc532e5
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ MACHINE_EXTRA_INSTALL_QT = "\
qtglesstream \
b2qt-emulator-proxy \
b2qt-emulator-vinput \
b2qt-emulator-sdcardmountd \
"
MACHINE_EXTRA_INSTALL_QT_SDK = "\
qtglesstream-dev \
......
#############################################################################
##
## Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies).
##
## This file is part of the Qt Enterprise Embedded Scripts of the Qt
## framework.
##
## $QT_BEGIN_LICENSE$
## Commercial License Usage Only
## Licensees holding valid commercial Qt license agreements with Digia
## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
## may use this file in accordance with the terms contained in said license
## agreement.
##
## For further information use the contact form at
## http://www.qt.io/contact-us.
##
##
## $QT_END_LICENSE$
##
#############################################################################
DESCRIPTION = "SD-Card mount daemon for Emulator"
LICENSE = "QtEnterprise"
LIC_FILES_CHKSUM = "file://sdcardmountd.h;md5=ba04e32af7257890758a149b0c14d11a;beginline=1;endline=17"
inherit qt5-module
SRC_URI = " \
git://codereview.qt-project.org/tqtc-boot2qt/emulator;branch=${BRANCH};protocol=ssh \
file://sdcardmountd.sh \
"
SRCREV = "1d001910d45349ae2a44fa01516baaa7ff4c9eda"
BRANCH = "master"
S = "${WORKDIR}/git/src/helperlibs/sdcarddaemon"
DEPENDS = "qtbase qtsimulator"
do_install_append() {
install -m 0755 -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/sdcardmountd.sh ${D}${sysconfdir}/init.d/
}
INITSCRIPT_NAME = "sdcardmountd.sh"
INITSCRIPT_PARAMS = "defaults 97 10"
inherit update-rc.d
#!/bin/sh
#############################################################################
##
## Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies).
##
## This file is part of the Qt Enterprise Embedded Scripts of the Qt
## framework.
##
## $QT_BEGIN_LICENSE$
## Commercial License Usage Only
## Licensees holding valid commercial Qt license agreements with Digia
## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
## may use this file in accordance with the terms contained in said license
## agreement.
##
## For further information use the contact form at
## http://www.qt.io/contact-us.
##
##
## $QT_END_LICENSE$
##
#############################################################################
DAEMON=/usr/bin/sdcardmountd
case "$1" in
start)
start-stop-daemon --start --quiet --exec $DAEMON &
;;
stop)
start-stop-daemon --stop --quiet --exec $DAEMON
;;
restart)
start-stop-daemon --stop --quiet --exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --exec $DAEMON &
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment