/lib/systemd/system/ofono-phonesim.service 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 | [Unit]
Description=ofono with phonesim simulator
Conflicts=ofono.service
After=ofono.service
[Service]
ExecStart=/usr/bin/with-ofono-phonesim
ExecStartPost=/bin/sh -ec ' \
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'
[Install]
WantedBy=multi-user.target
|