Caution! Article for developers

Information on this page is intended particularly for users with advanced technical knowledge.

Update Hooks

Sep 6, 2023 · 1 minutes to read

Treon Gateway Treon Gateway 2 Treon Gateway in Protective Enclosure

Sometimes you might need to run some software after the Treon Gateway software update has been completed. Updatehooks are enabling to run scripts after the gateway update and persist_move

Definition

Updatehooks are programs located in /etc/updatehooks.user.d/ that are executed in the first boot after the Treon Gateway software update. This means that they need to have their execute file permission and possibly shebang.

Creating Updatehooks

New updatehooks can be created to /etc/updatehooks.user.d/1. These programs can be e.g. bash or python scripts with shebang #!/bin/bash, #!/usr/bin/python3 or binary executables. Most important to them is the executable flag: e.g. Access: (0755/-rwxr-xr-x).

Please note: The updatehooks cannot access the internet as they are run by gw-system-persist at a very early stage of booting, before the Treon Gateway has network access.


  1. /etc/updatehooks.user.d/ is persistent folder ↩︎

 

 

Treon Support

You still have questions? Our dedicated team of experts is happy to help you! Please contact Treon Support directly by e-mail.

Did you know? Treon offers Premium Support and Maintenance Packages for our customers. Get even more out of Treon and boost your sales - inquire now about features and prices!

   


Was this article helpful? Let us know.
Next