Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sparse/etc/systemd/system/ofono.service.d/ofono.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Service]
ExecStartPost=/usr/bin/droid/ofono-delay.sh
TimeoutStartSec=60
2 changes: 2 additions & 0 deletions sparse/etc/systemd/user/lipstick.service.d/ofono-wait.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Service]
ExecStartPre=/usr/bin/droid/lipstick-ofono-wait.sh
8 changes: 8 additions & 0 deletions sparse/usr/bin/droid/lipstick-ofono-wait.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

while [ ! -f /run/ofono-ready ] ;
do
echo "Waiting for ofono..."
sleep 2
done
echo "Ofono ready!"
6 changes: 6 additions & 0 deletions sparse/usr/bin/droid/ofono-delay.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
#Delay until sure the imei has been read
/bin/sleep 20

#Signal to start lipstick
touch /run/ofono-ready