summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJeff Bailey <jbailey@ubuntu.com>2005-06-09 17:23:35 +0000
committerJeff Bailey <jbailey@ubuntu.com>2005-06-09 17:23:35 +0000
commitac222142f849ed340c3b7a0300a57cc3153e0436 (patch)
treebd18cbcc48bca8596a3af10c9e5fe8c2ca3c3509 /docs
parent8cfdec86dd2e4662a09d6384ab9042d32636560d (diff)
downloadinitramfs-tools-ac222142f849ed340c3b7a0300a57cc3153e0436.tar.gz
initramfs-tools-ac222142f849ed340c3b7a0300a57cc3153e0436.zip
Add hookscripts
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!"