[QPKG] Q-Ext - Add and manage your own scripts now!

Silas Mariusz

rm -rf /
Help us, GOD!
5 Kwiecień 2008
10 202
31
2 304
153
39
Nowy Sącz
forum.qnap.net.pl
QNAP
TS-x77
Ethernet
1 GbE
Dear QNAP'ers,

EDIT: This project is no longer supported
Nevertheless, you may have a look at the ASAP System- an Application's Store - to see if it cannot answer your expectation to some extend.


Thanks for using Q-Ext an Ad'Novea beta application



Q-Ext stands for Quick-Extension and is targeted to support scripts for administration functions.
It eases the integration of scripts that need to be launched either at boot or croned.
Q-Ext is aimed to support thanks to scripts, server reconfiguration after firmware upgrade, configuration reloading at boot and any functions that are not yet part of the QNAP server administration interface.

[FEATURES]
  • Configure boot script - Add your scripts/commands to be run at boot
  • Manage languages (LOCALES)
  • Manage Network Recycle Bin (Thanks to Don scripts)
  • Create/Manage Croned tasks (simple planned tasks editor)
  • Display NAS configuration files
  • for early NAS, check for Recovery mode enabling



[Enable/Disabled additional scripts]
New scripts can easily added to Q-Ext as an entry into the init.sh Q-Ext script. The Q-Ext init.sh script is called from the autorun.sh. Therefore, it is easy to enable/disable the execution of the init.sh script. Moreover, the instructions in the init.sh are not removed when the init.sh is disabled. Only the init.sh entry call from autorun.sh is removed.

[Add script to crontab]
New scripts can easily be added to the CRON and be "permanently" take into account by the cron daemon. A simple interface helps you to plan your script as a new task.

[Support third party script integration]
Integration of 3rd party script is just an additional entry into the Q-Ext init.sh script and/or a croned tasks. Configuration of scripts can be managed thanks to a online editor.


[HowTo add as script]
Create a new entry into the /index.php file for your script then call the relevant file to create pages:

index.php
to display the help page and give some information about the next pages used to configure the script

install.php
to install the script into the init.sh script (ADD) or into the autorun.sh (INSTALL) and offer a button to execute the script and display the log

edit_file.php
to display or edit (action=save) a file (may be configuration files tp edit or readme to display)

edit_cron.php
to enable the addition of the script to the crontab (the cron task can be logged into a log file)


language string are stored into the relevant file under /langs.
Create a new [section] for your script and according to the actions to perform, use the corresponding suffix (section_suffix)

Thanks

Andy


Download All NAS Models below
TS-101 / TS-201
TS-109 / TS-209 / TS-409
TS-509 / TS-439 / TS-639 / TS-839

Not yet support (but very soon in v1.0c)
TS-119 / TS-219 / TS-419

Releases
27-04-10 1.0d : Add x39 series
19-03-08 1.0b : Fix the issue related to wrong path for locales.log
22-02-08 1.0a : Add .htaccess authentication checking, fix symbolic link failure in qinstall.sh
07-02-08 1.0 : Initial release


PLEASE, DO NOT ADD REPLY TO THIS POST. USE OTHER THREADS.
QNAP Admin please do not lock this thread. THX


NOTE: rename file with the .qpkg extension and install from a console only:
Kod:
#  chmod 777 Q-Ext_1.0e_all.qpkg 
#  ./Q-Ext_1.0e_all.qpkg