------------------------------------------------------------
revno: 63
committer: Dimitri John Ledkov <[email protected]>
branch nick: upstart-jobs
timestamp: Sun 2014-04-13 12:09:29 +0100
message:
  auto update
modified:
  etc/init/ubuntu-location-service.override


--
lp:~upstart-devel/upstart/upstart-jobs
https://code.launchpad.net/~upstart-devel/upstart/upstart-jobs

Your team Upstart Reviewers is subscribed to branch 
lp:~upstart-devel/upstart/upstart-jobs.
To unsubscribe from this branch go to 
https://code.launchpad.net/~upstart-devel/upstart/upstart-jobs/+edit-subscription
=== modified file 'etc/init/ubuntu-location-service.override'
--- etc/init/ubuntu-location-service.override	2014-02-12 12:08:46 +0000
+++ etc/init/ubuntu-location-service.override	2014-04-13 11:09:29 +0000
@@ -1,11 +1,12 @@
-start on (android
-          and started dbus)
+start on android and started dbus
 
 script
     provider="gps::Provider"
 
+    while [ ! -e /dev/socket/property_service ]; do sleep 0.1; done
+
     # Check if we need to use the fake provider instead
-    if [ $(getprop custom.location.fake) = "true" ]; then
+    if [ "$(getprop custom.location.fake)" = "true" ]; then
         provider="dummy::Provider"
         poptions="--dummy::Provider::ReferenceLocationLat=$(getprop custom.location.lat 51.505660) \
                   --dummy::Provider::ReferenceLocationLon=$(getprop custom.location.lon -0.099850)"

-- 
upstart-devel mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/upstart-devel

Reply via email to