Home

Awesome

create-autorun icon

Description

This is a run-once BASH script to create an autorun environment on your QNAP NAS. This can be used to automatically execute your own scripts when the NAS boots-up.

The aim of this project is to support all QNAP NAS models and all QTS & QuTS hero versions. Please advise if you encounter any errors when running it on your NAS.

What it does

This installer script writes an autorun.sh processor into your default volume, below the .system directory. It then symlinks this from the DOM back to your default data volume so that it is run on NAS startup. This means you don't need to load the DOM partition every time you want to change the contents of autorun.sh

The autorun device and partition are automatically determined by this script.

How to create your autorun.sh

curl -skL https://git.io/create-autorun | sudo bash

Notes

/share/CACHEDEV1_DATA/.system/autorun/autorun.sh

... and the scripts directory will be created at:

/share/CACHEDEV1_DATA/.system/autorun/scripts/
10-example.sh
20-example.sh
25-example.sh
30-example.sh