4.3.3.0262 build 20170727 - Autorun Feature

Introduce yourself to us and other members here, or share your own product reviews, suggestions, and tips and tricks of using QNAP products.
dulcifium
Been there, done that
Posts: 720
Joined: Fri Oct 23, 2009 6:52 pm

Re: 4.3.3.0262 build 20170727 - Autorun Feature

Post by dulcifium »

schumaku wrote:Hi Marc,
spycho wrote:Now my question is where is the autorun.sh script located, there is only a 'view' but not a 'edit' button on the hardware menu.
I'd wish there would be an [Edit] option here, too.

Creating and maintaining the autorun.sh file must be done "the hard way" as shown here -> https://wiki.qnap.com/wiki/Running_Your ... at_Startup ... use the editautorun.sh approach (just the commands, or keep it as a file) - but the appropriate one matching your NAS model.
Many models aren't listed there. What's the correct way of doing this on an X79 model to permanently change the PATH environment variable?
QNAP TS-639 Pro (3.8.1 Build 20121205) | 6 x 3 TB (Toshiba DT01ACA300 firmware MX6OABB0) | 12 TB RAID-6
Both shared over single port GbE and wifi router to Linux, Android, Windows, macOS and NVIDIA Shield
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: 4.3.3.0262 build 20170727 - Autorun Feature

Post by schumaku »

dulcifium wrote:Many models aren't listed there.
The many not listed are "All HAL-based Intel and AMD NAS" models, like your x79.
dulcifium wrote:What's the correct way of doing this on an X79 model to permanently change the PATH environment variable?
Purpose? As this is not Mess-DOS, autorun.sh does not have some "direct" PATH manipulation functionality.
User avatar
Don
Guru
Posts: 12289
Joined: Thu Jan 03, 2008 4:56 am
Location: Long Island, New York

Re: 4.3.3.0262 build 20170727 - Autorun Feature

Post by Don »

What I have done in the past is to create the autorun file. In the autorun file I call another another script file that is outside of that mount point. This way I only have to do the mount once. Any changes I need to make get done on the called script without having to mount and unmount.
Use the forum search feature before posting.

Use RAID and external backups. RAID will protect you from disk failure, keep your system running, and data accessible while the disk is replaced, and the RAID rebuilt. Backups will allow you to recover data that is lost or corrupted, or from system failure. One does not replace the other.

NAS: TVS-882BR | F/W: 5.0.1.2346 | 40GB | 2 x 1TB M.2 SATA RAID 1 (System/VMs) | 3 x 1TB M.2 NMVe QM2-4P-384A RAID 5 (cache) | 5 x 14TB Exos HDD RAID 6 (Data) | 1 x Blu-ray
NAS: TVS-h674 | F/W: 5.0.1.2376 | 16GB | 3 x 18TB RAID 5
Apps: DNSMasq, PLEX, iDrive, QVPN, QLMS, MP3fs, HBS3, Entware, DLstation, VS, +
Post Reply

Return to “Users' Corner”