/etc/init/ofono-phonesim.conf is in ofono-phonesim-autostart 1.20-1ubuntu7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # set up ofono to run with the phone simulator
description "ofono with phonesim simulator"
start on runlevel [2345]
stop on runlevel [06]
exec with-ofono-phonesim quiet
post-start script
# wait until the modem is actually ready
echo "Waiting for modem to get powered..."
for timeout in `seq 10`; do
if /usr/share/ofono/scripts/list-modems | grep -q "EmergencyNumbers"; then
break
fi
sleep 1
done
if [ "$timeout" -le 1 ]; then
echo "phonesim failed to start!" >&2
exit 1
fi
end script
|