From 8fda71b59dc62210f038a30cbf22abc7ff585c09 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Fri, 21 Aug 2015 20:22:58 +0200 Subject: shellcmd - rewrite from scratch --- config/shellcmd/shellcmd.xml | 185 +++++++++++++++++++++++++------------------ 1 file changed, 107 insertions(+), 78 deletions(-) (limited to 'config/shellcmd') diff --git a/config/shellcmd/shellcmd.xml b/config/shellcmd/shellcmd.xml index 094c3d30..4becdf89 100644 --- a/config/shellcmd/shellcmd.xml +++ b/config/shellcmd/shellcmd.xml @@ -1,115 +1,144 @@ - - + + - - + - - Shellcmd - Describe your package requirements here - Currently there are no FAQ items provided. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +*/ +/* ====================================================================================== */ + ]]> + Shellcmd Settings - 0.4 - Settings + 1.0 + Shellcmd Settings /usr/local/pkg/shellcmd.inc + /pkg.php?xml=shellcmd.xml + [shellcmd] Successfully created/modified custom (early)shellcmd. + [shellcmd] Successfully deleted custom (early)shellcmd. Shellcmd - shellcmd settings.
Services
shellcmd.xml - /packages/shellcmd/shellcmd.php + /pkg.php?xml=shellcmd.xml
Settings - /pkg_edit.php?xml=shellcmd.xml&id=0 + /pkg.php?xml=shellcmd.xml - - Settings - /packages/shellcmd/shellcmd.php - - - installedpackages->package->$packagename->configuration->shellcmd /usr/local/pkg/ - 0755 - https://packages.pfsense.org/packages/config/shellcmd/shellcmd.xml - - - /usr/local/pkg/ - 0755 https://packages.pfsense.org/packages/config/shellcmd/shellcmd.inc - - /usr/local/www/packages/shellcmd/ - 0755 - https://packages.pfsense.org/packages/config/shellcmd/shellcmd.php - - - /usr/local/www/packages/shellcmd/ - 0755 - https://packages.pfsense.org/packages/config/shellcmd/shellcmd_edit.php - + + + Command + cmd + + + Shellcmd Type + cmdtype + + + Description + description + + Add a new (early)shellcmd entry + Edit this (early)shellcmd entry + Delete this (early)shellcmd entry + - Variable One - var1 - Enter the variable one here. + listtopic + none + Shellcmd Configuration + + + Command + cmd input + 60 + Enter the command to run. + + + + Shellcmd Type + cmdtype + select + + + + + +
+ shellcmd will run the command specified towards the end of the boot process.
+ earlyshellcmd will run the command specified at the beginning of the boot process.

+ See Executing commands at boot time for detailed explanation. + ]]> +
+
- Variable Two - var1 - Enter the variable one here. + Description + description + Enter a description for this command. input + (This is for your reference only.) + 60 -
- - + + + shellcmd_import_config(); + shellcmd_sync_package(); - - shellcmd_sync_package(); + + shellcmd_delete_php_command(); - - shellcmd_install_command(); - - - shellcmd_deinstall_command(); - + + shellcmd_validate_input($_POST, $input_errors); +
-- cgit v1.2.3