K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / share / doc / initramfs-tools / examples /
server ip : 172.67.156.115

your ip : 141.101.98.157

H O M E


Filename/usr/share/doc/initramfs-tools/examples/example_script
Size1.12 kb
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified01-Jun-2012 11:36
Last accessed07-Jul-2025 18:11
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/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(8) 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
;;
mountfail) # Called if the script has previously registered a mountroot
# failure.
# Check status, and display any relevant information about the
# failure if there is a problem, then exit with a status of 1.
;;
esac

# Do the work here.

# If this script is to be placed in either init-premount, or local-top,
# register a mountroot failure hook, so that further information can be given
# to the user, in the event that the root device cannot be found.

. /scripts/functions

add_mountroot_fail_hook

echo "Got here!"

exit 0