Ask / Submit

Run script/prompt while boot

asked 2019-01-10 21:04:16 +0200

dirksche gravatar image

My Xperia with Sailfish X has the strange behavior to not connect to any network after boot. No mobile network. Neither phone nor internet is possible. Only after restarting ofono with the prompt devel-su systemctl restart ofono phone and internet is connected. I'm now looking for a way to autostart this prompt when booting the phone. Is this possible?

edit retag flag offensive close delete


Wouldn't it be better to fix the reason for the bug rather than create a workaround...?

juiceme ( 2019-01-11 10:19:11 +0200 )edit

Of course. But till I find the reason I would like to have a workaround. By the way. I did try and all of this After removing /var/lib/ofono/* the first reboot was successfull but after booting again connection fails as before

dirksche ( 2019-01-11 11:04:31 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2019-01-11 08:55:22 +0200

hsjpekka gravatar image

Did you try autostart-apps?

edit flag offensive delete publish link more


It very much looks like a job for a custom systemd service, so: nice suggestion.

Maus ( 2019-01-11 11:32:11 +0200 )edit

Thank you for yout suggestion. I will have a try this weekend

dirksche ( 2019-01-12 10:36:39 +0200 )edit

answered 2019-01-14 21:38:51 +0200

dirksche gravatar image

Putting in a different sim card and then using the old one again solved the problem. It's voodoo or something like that.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools



Asked: 2019-01-10 21:04:16 +0200

Seen: 217 times

Last updated: Jan 14