~upstart-devel/upstart/upstart-jobs

« back to all changes in this revision

Viewing changes to utopic/etc/init/ubuntu-location-service.override

  • Committer: Dimitri John Ledkov
  • Date: 2014-11-19 12:58:41 UTC
  • Revision ID: dimitri.j.ledkov@intel.com-20141119125841-98dr37roy8dvcv3b
auto update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
start on android and started dbus
2
 
 
3
 
script
4
 
    provider="gps::Provider"
5
 
 
6
 
    while [ ! -e /dev/socket/property_service ]; do sleep 0.1; done
7
 
 
8
 
    # Check if we need to use the fake provider instead
9
 
    if [ "$(getprop custom.location.fake)" = "true" ]; then
10
 
        provider="dummy::Provider"
11
 
        poptions="--dummy::Provider::ReferenceLocationLat=$(getprop custom.location.lat 51.505660) \
12
 
                  --dummy::Provider::ReferenceLocationLon=$(getprop custom.location.lon -0.099850)"
13
 
    fi
14
 
 
15
 
    exec /usr/bin/ubuntu-location-serviced --bus system --provider $provider $poptions
16
 
end script
17