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_opensc script
if [ ! -x ${DESTDIR}/lib/cryptsetup/scripts/decrypt_opensc ] ; 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/opensc usr/lib/pcsc var/run tmp ; do
    if [ ! -d ${DESTDIR}/${dir} ] ; then mkdir -p ${DESTDIR}/${dir} ; fi
done

# Install pcscd daemon, drivers, conf file, and include libgcc as well since
# pcscd utilizes pthread_cancel
copy_exec /usr/sbin/pcscd
copy_exec /lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/libgcc_s.so.1
copy_exec /lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/libusb-1.0.so.0
copy_exec /lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/libusb-1.0.so.0.1.0
copy_exec /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/libpcsclite.so.1
cp -r /usr/lib/pcsc ${DESTDIR}/usr/lib
cp /etc/reader.conf ${DESTDIR}/etc || true
cp /etc/libccid_Info.plist ${DESTDIR}/etc

# Install opensc commands and conf file
copy_exec /usr/bin/opensc-tool
copy_exec /usr/bin/pkcs15-crypt
cp /etc/opensc/opensc.conf ${DESTDIR}/etc/opensc

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