diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:49:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:49:14 +0000 |
commit | 3c2d31adff62d355d29246bdbe3c43bc25b9008b (patch) | |
tree | cf28adc8f4ab5f7eec9f5e13dfd65b099acbb709 /docs/example_script | |
parent | Initial commit. (diff) | |
download | initramfs-tools-3c2d31adff62d355d29246bdbe3c43bc25b9008b.tar.xz initramfs-tools-3c2d31adff62d355d29246bdbe3c43bc25b9008b.zip |
Adding upstream version 0.133+deb10u1.upstream/0.133+deb10u1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | docs/example_script | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/example_script b/docs/example_script new file mode 100644 index 0000000..accab37 --- /dev/null +++ b/docs/example_script @@ -0,0 +1,35 @@ +#!/bin/sh + +# +# This script is run inside of the initramfs environment during the +# system boot process. It is installed there by 'update-initramfs'. +# The # package that owns it may opt to install it in an appropriate +# location under "/usr/share/initramfs-tools/scripts/". +# +# see initramfs-tools(7) for more details. + +# +# List the soft prerequisites here. This is a space separated list of +# names, of scripts that are in the same directory as this one, that +# must be run before this one can be. +# +PREREQ="" + +prereqs() +{ + echo "$PREREQ" +} + +case $1 in +# get pre-requisites +prereqs) + prereqs + exit 0 + ;; +esac + +# Do the work here. + +echo "Got here!" + +exit 0 |