VP-12, VP-12P IP phones. Operation manual
93
2. Execution from
TFTP server
To execute the script from TFTP server, you should specify full path to file in TFTP-URL format
within URL parameter:
URL: “tftp://192.168.0.250/user-script/script.sh”
After the device startup, script.sh file located in the 'user-script' folder at 192.168.0.250 will be
downloaded automatically via TFTP from the server and executed afterwards.
3. Local script execution
Due to file system specifics, local script should be located in the /etc/config folder only, as the
contents of this folder are the only one that remains after the device reboot. Script in /etc/config
folder may be created either with vi editor, or downloaded from the external TFTP server (using 'tftp
–gluser.sh<TFTP-server address>' command). After creation of the script, you should set execution
permissions with 'chmod 777 /etc/config/user.sh' command.
In the configuration file, local script execution URL should be as follows:
URL: “File://etc/config/user.sh”
It is important to note, that the user script should begin with the '#!/bin/sh' directive.