summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/example_script21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/example_script b/docs/example_script
new file mode 100644
index 0000000..111b0d8
--- /dev/null
+++ b/docs/example_script
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# List the soft prerequisites here. So if there's something you know
+# should be run first iff it exists.
+PREREQ=""
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+# Do the work here.
+echo "Got here!"