|
Veethree D7 SDK
|
The action mechanism utilizes the swupdate process to allow users to run scripts on the board without requiring a restart and on both release and development images.
This could be useful for updating configuration files or other small tasks especially on release images where remote access is not available.
The action is signed and then verified on the D7 using the supplied key pair in the same way an update is verified. See software update details for more information.
Unlike the updates there is no feedback for an action. It is up to the user to add a feedback mechanism. One example could be to log success or failure in a text file on the USB device /mnt/usbstick.
To create the action simply create a POSIX compliant shellscript and feed that into swugen with the additional --action argument. Copy the .swu to a USB device and insert it into a powered on device.
After applying the sample action below a text file will be created on the USB stick with the contents "hello world".
Linux
Create a script that writes "hello world" to a text file on the USB
Generate the action
Windows (cmd)
Create a script that writes "hello world" to a text file on the USB
Generate the action
On this page, we have presented the supported method to run configuration scripts on the device outside of an update context.