summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJames Vasile <james@hackervisions.org>2011-02-22 13:33:35 -0500
committerJames Vasile <james@hackervisions.org>2011-02-22 13:33:35 -0500
commitc108b443d3b45d04c5a20cf7ff6dac7d182981a1 (patch)
tree39a2e01fa2b79188d3b5695dc37aafe609303466 /doc
parent35071d7212cec1fc23e8204bfd392a116a5313ed (diff)
Adding script capability
Diffstat (limited to 'doc')
-rw-r--r--doc/scripts.mdwn24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/scripts.mdwn b/doc/scripts.mdwn
new file mode 100644
index 0000000..da9e65b
--- /dev/null
+++ b/doc/scripts.mdwn
@@ -0,0 +1,24 @@
+# Scripts
+
+The Plinth front end should not directly change any aspect of the
+underlying operating system. Instead, it should call upon scripts,
+either by shell command or (for python modules) via import.
+
+Scripts live in `/scripts`. They should have the following
+characteristics:
+
+* Do only one thing
+
+* Require no interaction beyond passing parameters or commandline
+ arguments
+
+* Change the operation of the services and applications of the Freedom
+ Plug and nothing else.
+
+* If a script is a python file, it should be *both* usable from the
+ commandline and importable as a python module.
+
+The scripts should be of general utility. They should be usable to
+admin and configure the system even in the absence of Plinth. These
+scripts are the only supported method of making changes to a Freedom
+Plug, whtether by SSH or via Plinth.