/
usr
/
share
/
doc
/
initramfs-tools-core
/
examples
/
/usr/share/doc/initramfs-tools-core/examples
mkdir
upload
Name
Size
Mode
Actions
example_hook
1889
0644
edit
dl
rm
example_script
659
0644
edit
dl
rm
framebuffer
2625
0644
edit
dl
rm
modules
357
0644
edit
dl
rm
Edit:
/usr/share/doc/initramfs-tools-core/examples/example_script
(659B)
#!/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
Save
cmd:
run