404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.22.194.5: ~ $
#!/bin/sh

set -e

PREREQ="cryptroot"

prereqs()
{
    echo "$PREREQ"
}

case $1 in
    prereqs)
        prereqs
        exit 0
        ;;
esac

. /usr/share/initramfs-tools/hook-functions

# Hooks for loading smartcard reading software into the initramfs

# Check whether cryptroot hook has installed decrypt_openct script
if [ ! -x ${DESTDIR}/lib/cryptsetup/scripts/decrypt_openct ] ; then
    exit 0
fi

# Install cryptroot key files into initramfs
keys=$(sed 's/^\(.*,\|\)key=//; s/,.*//' ${DESTDIR}/conf/conf.d/cryptroot)

if [ "${keys}" != "none" ]
then
	if [ -z "${keys}" ] ; then
	    echo $0: Missing key files in ${DESTDIR}/conf/conf.d/cryptroot >&2
	    cat ${DESTDIR}/conf/conf.d/cryptroot >&2
	    exit 1
	fi
	for key in ${keys} ; do
	    if [ ! -d ${DESTDIR}/$(dirname ${key}) ] ; then
	        mkdir -p ${DESTDIR}/$(dirname ${key})
	    fi
	    cp ${key} ${DESTDIR}/${key}
	done
fi

# Install directories needed by smartcard reading daemon, command, and
# key-script
for dir in etc etc/init.d etc/udev/rules.d lib/udev usr/bin usr/sbin var/run/openct tmp ; do
    if [ ! -d ${DESTDIR}/${dir} ] ; then mkdir -p ${DESTDIR}/${dir} ; fi
done

# Install openct tools, drivers, conf file
cp /etc/openct.conf ${DESTDIR}/etc/
cp /etc/udev/rules.d/z60_openct.rules ${DESTDIR}/etc/udev/rules.d/
cp /lib/udev/openct_pcmcia ${DESTDIR}/lib/udev/
cp /lib/udev/openct_serial ${DESTDIR}/lib/udev/
cp /lib/udev/openct_usb ${DESTDIR}/lib/udev/
copy_exec /usr/bin/openct-tool
copy_exec /usr/bin/pkcs15-tool
copy_exec /usr/sbin/ifdhandler
copy_exec /usr/sbin/openct-control

Filemanager

Name Type Size Permission Actions
bcache File 543 B 0755
btrfs File 597 B 0755
cloud-initramfs-dyn-netconf File 118 B 0755
compcache File 3.52 KB 0755
console_setup File 3.07 KB 0755
copymods File 280 B 0755
cryptgnupg File 979 B 0755
cryptkeyctl File 451 B 0755
cryptopenct File 1.53 KB 0755
cryptopensc File 1.81 KB 0755
cryptpassdev File 913 B 0755
cryptroot File 24.48 KB 0755
cryptroot-unlock File 425 B 0755
dmsetup File 506 B 0755
fixrtc File 412 B 0755
framebuffer File 528 B 0755
fsck File 2.1 KB 0755
fuse File 230 B 0755
iscsi File 724 B 0755
kbd File 301 B 0755
klibc-utils File 843 B 0755
kmod File 424 B 0755
lvm2 File 670 B 0755
mdadm File 2.83 KB 0755
ntfs_3g File 304 B 0755
overlayroot File 732 B 0755
plymouth File 5.15 KB 0755
resume File 2.21 KB 0755
thermal File 1.25 KB 0755
udev File 1.67 KB 0755
zz-busybox-initramfs File 1.33 KB 0755
zz-dhclient File 411 B 0755