Using the nstnewscript will give one a good start on a new script. However, it does not add the script to the NST distribution. If the new script you are creating is to be included with the distribution, a developer has two options:
Add the name of your new script to
src/packages/system/nstscripts.sh (this is the
easy way).
Create a new installation script (like
src/packages/system/nsthdinstall.sh
)
for your script. This is required if your script has many
resource files, or a complicated installation
procedure.
To add your script to the installation script, you need to
update the array of script names which installs. Look for
NSTSCRIPT
in . It should resemble:
# Array of NST scripts this installation script will install NSTSCRIPT_LIST=( lddcheck nstsetproxy null-modem-ppp )
By default, scripts are installed such that they can be
found under /usr/local/bin
. If your
script needs to be placed under
/root/bin
, they you will need to add the
name of your script to the NSTSCRIPTS_ROOT_LIST
as well as NSTSCRIPT_LIST
.