%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/usr/share/initramfs-tools/hooks/ |
Upload File : |
#!/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 gnupg software and key into the initramfs # Check whether cryptroot hook has installed decrypt_gnupg script if [ ! -x ${DESTDIR}/lib/cryptsetup/scripts/decrypt_gnupg ] ; 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 echo "WARNING: GnuPG key $key is copied to initramfs" >&2 if [ ! -d ${DESTDIR}/$(dirname ${key}) ] ; then mkdir -p ${DESTDIR}/$(dirname ${key}) fi cp ${key} ${DESTDIR}/${key} done fi # Install gnupg software copy_exec /usr/bin/gpg exit 0