Linux application update with manual offline distribution
-
I am working with a customer who needs to send updates to customers via a flash or a zip file. The raspberry Linux box will not be connected to the internet or any network so we will need to do the update from a flash drive.
Will the simplest method be to just write a script that the customer can execute from the execution directory that will go poll the flash drive for an update and then copy the data over and over write the current execution directory (after doing version checks, etc)?
I am trying to make this as simple as possible but also reliable.
Ken
-
Hi,
Beside your application, do you have any control on the target device content ?
-
There might be several options:
-
Use udev to trigger a helper script that will mount the usb drive when plugged, check the content of the drive and apply the update.
-
Have an update mode in your main application that will trigger the update.
Does the update require a reboot of the system ?
-