djraw / synology-autorun

Execute scripts when connecting external drives (USB / eSATA) on a Synology NAS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autorun

Execute scripts when connecting external drives (USB / eSATA) on a Synology NAS.

install

Add https://www.cphub.net/ in the Package Center (current DSM only) or manually install one from the releases (for older DSM):

  • DSM 7: 1.8
  • DSM 6: 1.7
  • DSM 5: 1.6
  • older: 1.3

Third Party packages are restricted by Synology in DSM 7. Since autorun does require root permission to perform its job an additional manual step is required after the installation.

SSH to your NAS (as an admin user) and execute the following command:

sudo cp /var/packages/autorun/conf/privilege.root /var/packages/autorun/conf/privilege

build

Should run on any *nix box / subsystem.

  • adjust the version number in INFO and build
  • ./build
  • publish the created .spk

Note that almost all of the UI is currently not included in the build (since I got bored of updating that with more or less every DSM version).

About

Execute scripts when connecting external drives (USB / eSATA) on a Synology NAS

License:Other


Languages

Language:Perl 53.3%Language:Shell 38.9%Language:CSS 5.8%Language:HTML 2.0%