ALERT: Datto Drive Cloud service will no longer be available as of July 1, 2019. For more information, see our end-of-life article. If you'd like to migrate your data to Datto Workplace, see our migration guide.
To learn how to download your Datto Drive Cloud data, please visit this article.

Legacy Open Mesh: scripts overview



This article describes using custom .sh scripts on Datto access points.


  • Datto Access Points

Description scripts allow you to run a custom script one on an access point. scripts are considered deprecated. We are not able to directly support your scripts. Please strongly consider submitting a feature request, instead of writing a script.

United States and Canada

FCC restrictions apply with regards to what scripts you can run. Please read the scripts approval process article, if you haven’t done so already.

How it works

Fill the "" field (under Advanced) with the URL (domain + folder) which contains your "" script including the trailing slash. For example:

The firmware will download the "" file from that location each time the dashboard sends a full configuration reply to the device (mainly happens when the 'update network settings' button is pushed). Then its md5 checksum is compared with the previously executed file. If the md5 checksums mismatch (the has been altered) the is executed otherwise it is not, thus ensuring each device executes the file only once.

The file itself is deleted after the firmware ran it. Only the md5 checksum is stored in the uci config system. To verify whether or not your script ran you can retrieve the checksum with:

uci get node.setting.cs_md5

We save the downloaded file as under the /tmp directory and then execute it using /bin/sh -c /tmp/

Re-running a script

Note that if you wish to run your script more than once (without altering it) you need to delete the stored md5 checksum and force a dashboard config reload by pushing the 'update network settings' button. To clear the md5 checksum and re-run an existing script, use first, then add your original script URL.

If you need to the script to run on a regular basis, it should install itself as a cronjob.

Schedule Script / Cronjob

Because downloading the script over and over is neither efficient nor feasible (you would have to keep pushing the button) it is recommended you install a permanent script onto the device and link it to one of the special purpose folders firmware-ng comes with:

  • /etc/cron.5mins/ - Every script in this folder will be executed every 5 minutes.
  • /etc/cron.hourly/ - Every script in this folder will be executed once per hour.


Was this article helpful?

0 out of 0 found this helpful

You must sign in before voting on this article.

Want to talk about it? Have a feature request?

Head on over to our Community Forum or get live help.