We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

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

Comments

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
1

Of course. But till I find the reason I would like to have a workaround. By the way. I did try https://jolla.zendesk.com/hc/en-us/articles/115011240387-Fixing-the-settings-of-mobile-data?mobile_site=true and all of this https://jolla.zendesk.com/hc/en-us/articles/115011870727?mobile_site=true 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
2

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

hsjpekka gravatar image

Did you try autostart-apps?

https://together.jolla.com/question/404/autostart-applications/

edit flag offensive delete publish link more

Comments

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
0

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

Follow
3 followers

Stats

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

Seen: 310 times

Last updated: Jan 14 '19