summaryrefslogtreecommitdiffstats
path: root/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh')
-rwxr-xr-xrecipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh b/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh
new file mode 100755
index 0000000..3acbd65
--- /dev/null
+++ b/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh
@@ -0,0 +1,42 @@
1#!/bin/sh
2#############################################################################
3##
4## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
5##
6## This file is part of the Qt Enterprise Embedded Scripts of the Qt
7## framework.
8##
9## $QT_BEGIN_LICENSE$
10## Commercial License Usage Only
11## Licensees holding valid commercial Qt license agreements with Digia
12## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
13## may use this file in accordance with the terms contained in said license
14## agreement.
15##
16## For further information use the contact form at
17## http://www.qt.io/contact-us.
18##
19##
20## $QT_END_LICENSE$
21##
22#############################################################################
23
24case "$1" in
25start)
26 if [ -x /data/user/b2qt ]; then
27 APP="/data/user/b2qt"
28 elif [ -x /usr/bin/b2qt ]; then
29 APP="/usr/bin/b2qt"
30 else
31 APP="/usr/bin/qtlauncher --applications-root /data/user/qt"
32 fi
33 /usr/bin/appcontroller ${APP} &
34 ;;
35stop)
36 /usr/bin/appcontroller --stop
37 ;;
38*)
39 echo "Usage: $0 {start|stop}"
40 exit 1
41esac
42exit 0