1
description "Nokia Here positioning services"
3
# this requires DBus and is useless without slpgwd; should cope with DBus
4
# services restarting though
5
start on started dbus and started ubuntu-location-provider-here-slpgwd
12
env BASE="/custom/vendor/here/location-provider"
13
env STORAGE="/userdata/system-data/var/lib/ubuntu-location-provider-here"
16
if ! [ -x "$BASE/bin/i386-linux-gnu/posclientd" ]; then
17
echo "HERE binaries not found; disabling" >&2
21
# XXX need to move to session bus to avoid hardcoding this ~phablet test
22
if ! herepositioning-license-accepted; then
23
echo "HERE license not accepted; disabling" >&2
29
. /usr/share/ubuntu-location-provider-here/functions
30
# set the env variables
31
if [ "$(getprop custom.location.report_imei)" = "true" ]; then
41
LD_LIBRARY_PATH="$BASE/lib/i386-linux-gnu"
42
export LD_LIBRARY_PATH
43
exec "$BASE/bin/i386-linux-gnu/posclientd" \
44
--preinst-dir "$BASE/share" --storage-dir "$STORAGE"