This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

WEBGUI command script

Post/Debate your Suggestions & Requests of XigmaNAS here. This ONLY pertains to XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
jamaroney
Advanced User
Advanced User
Posts: 245
Joined: 13 Aug 2012 17:32
Location: Stroudsburg, PA
Status: Offline

WEBGUI command script

Post by jamaroney »

It would be nice if one could enter a new command script in the WebGUI so that isn't last in the order.

For example, I have several commands already in place, but wish to add one that needs to occur before the others. Also, if I accidentally enter a command, for example, as a PreInit, but wanted it to be a PostInit, it seems that i have to delete it and start all over again.

Right now, it seems as if the only options are:
1) delete all the commands, and then re-enter them all in the order I want.
2) Save the existing configuration, edit the configuaration xml file, and then load it and reboot.

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: WEBGUI command script

Post by alexey123 »

You have another way for shutdown, preinit and postinit
create files, such /mnt/path/to/postinit.sh and /mnt/path/to/preinit.sh /mnt/path/to/shutdown.sh
Make its executable and add its to webgui command scripts and edit its as you want
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

jamaroney
Advanced User
Advanced User
Posts: 245
Joined: 13 Aug 2012 17:32
Location: Stroudsburg, PA
Status: Offline

Re: WEBGUI command script

Post by jamaroney »

Thanks for the suggestion, but to someone inexperienced like me, that seems rather daunting. It's pretty easy for me to edit the config xml file, but it would be nicer just to do it in the WebGUI.

Post Reply

Return to “Suggestions & Requests”