Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <config>
- <!--
- If you want to run external commands, enter them in this configuration with
- full path. You will see them in the main menu. Copy this file into the
- <storage>/database directory.
- Security consideration: The reason there is no online editor for this is simply
- security. The commands you enter here are executed with the privileges of the
- daemon running the server. If you would allow online configuration, a hacker could
- simply add any command he needs to hack your system.
- -->
- <command>
- <name>Shutdown Server</name>
- <execute>sudo /sbin/shutdown -h now</execute>
- <confirm>Really shut down the server?</confirm>
- </command>
- <command>
- <name>Reboot Server</name>
- <execute>sudo /sbin/shutdown -r now</execute>
- <confirm>Really reboot the server?</confirm>
- </command>
- <!--custom commands-->
- <command>
- <name>Power Off Printer</name>
- <execute>gpio -g mode 26 out && gpio -g write 26 1</execute>
- <confirm>Really poweroff the printer</confirm>
- </command>
- <!-- <command>
- <name>Power On Printer</name>
- <execute>gpio -g mode 26 out && gpio -g write 26 0</execute>
- <confirm></confirm>
- </command>
- -->
- <!--
- G-code files can contain
- @execute cmd param1 param2
- commands. To prevent external users from executing unwanted or dangerous commands,
- only commands defined here are allowed to execute. More over, only the shortcuts
- defined here are to be used as cmd in @execute. Prevent parameter where ever possible.
- -->
- <execute name="play" allowParams="true">/usr/bin/afplay</execute><!-- play the sound file on moc os x -->
- </config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement