Patrick B.
Forum Replies Created
-
AuthorPosts
-
Patrick B.
ParticipantJeff,
Adding the
persist
option to/var/config/ppp/options
makes pppd reconnect automatically when the connection is lost. This works quite well, except in the situation I’m describing.—
Patrick.Patrick B.
ParticipantHi Jeff,
thanks again for your help. We chose to add a script (in the flavor the reset-handler) which is run at each boot. It checks whether a file exists on the rootfs-partition. If the file does not exists it assumes the very first boot after an rootfs-upgrade and creates the file and does what it has to do in regards to the ipk-files. IPK files are stored in /var/config.
Doing it like this we can add features and fix bugs in this scripts and they take effect with the very next upgrade of the rootfs-image.
Thanks again for your help.
—
Patrick.Patrick B.
ParticipantJeff,
thank you for your feedback, it’s highly appreciated.
One last question, is there are way to figure out whether a boot is the very first boot after having flashed the rootfs? I haven’t found a generic way how this is done when searching for Yocto and this on Google.
Hmm, I could simply create a file in the rootfs once my script has run and check whether the file exists or not in the beginning of the script.
—
Patrick.Patrick B.
ParticipantThank you Jeff for your feedback. We are opting for using /var/config. It is 8MB only, but this is enough for the moment for our needs.
Side-question: what is /var/oem used for? On my installation it is empty.
I’m preparing a script which will install the IPK-files found there during the very first boot after flashing. I saw that there are already things done during the very first boot after flashing. Could you point me to the place in the mlinux-git-tree where the scripts are to be placed? Ideally I’d put the script into my user-layer and automagically my script is called during the first boot. What do you think?
Patrick B.
ParticipantWhat specific place could that be? Is there a partition which survives reflashing of the rootfs?
Where can I hook into the flashing process? Flashing is done when the conduit is shutting down. I could put the IPK-files into the volatile-dir and after flashing move them onto the new rootfs where the script will install the files on the next reboot.
Patrick B.
ParticipantYes, I knew that, but that’s not what I meant.
How should I fix it, so that others (and Multitech) will benefit from it? Shall I try to upstream it to OpenEmbedded or will you guys do it?
Patrick.
-
AuthorPosts