diff options
author | Jeff Bailey <jbailey@ubuntu.com> | 2005-06-09 17:23:35 +0000 |
---|---|---|
committer | Jeff Bailey <jbailey@ubuntu.com> | 2005-06-09 17:23:35 +0000 |
commit | ac222142f849ed340c3b7a0300a57cc3153e0436 (patch) | |
tree | bd18cbcc48bca8596a3af10c9e5fe8c2ca3c3509 /docs | |
parent | 8cfdec86dd2e4662a09d6384ab9042d32636560d (diff) | |
download | initramfs-tools-ac222142f849ed340c3b7a0300a57cc3153e0436.tar.gz initramfs-tools-ac222142f849ed340c3b7a0300a57cc3153e0436.zip |
Add hookscripts
Diffstat (limited to 'docs')
-rw-r--r-- | docs/example_script | 21 |
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!" |