forked from FilipBE/qtextended
-
Notifications
You must be signed in to change notification settings - Fork 39
/
qpe.sh
executable file
·41 lines (36 loc) · 873 Bytes
/
qpe.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
# Sample start-up script for Qtopia.
#
# Instead of using a script like this, you may instead set
# the defaults for these variables in the file:
#
# src/libraries/qtopiabase/custom-<platform>.h
#
# for your platform.
QTOPIA_INSTALL_PREFIX=/opt/Qtopia # set to the -prefix location at install time
cmd=$0
speed=""
while [ -n "$1" ]
do
case "$1" in
--ir)
export QTOPIA_PHONE_DEVICE="/dev/ircomm"
;; --sim)
export QTOPIA_PHONE_DEVICE="sim:localhost"
export QTOPIA_PHONE_DEVICE_LOW="sim:localhost"
;; --gsm0710)
export QTOPIA_PHONE_DEVICE="/dev/ttyU0"
export QTOPIA_PHONE_DEVICE_LOW="/dev/ttyU1"
;; --speed)
shift
export speed=$1
;; --modem)
export QTOPIA_PHONE_DEVICE="/dev/modem"
esac
shift
done
if [ -n "$speed" ]
then
export QTOPIA_PHONE_DEVICE="$QTOPIA_PHONE_DEVICE:$speed"
fi
$QTOPIA_INSTALL_PREFIX/bin/qpe