文件操作 - cryptkeyctl
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/initramfs-tools/hooks/cryptkeyctl
编辑文件内容
#!/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 keyctl software into the initramfs # Check whether cryptroot hook has installed decrypt_keyctl script if [ ! -x "$DESTDIR/lib/cryptsetup/scripts/decrypt_keyctl" ]; then exit 0 fi copy_exec /lib/cryptsetup/askpass copy_exec /bin/keyctl exit 0
修改文件时间
将文件时间修改为当前时间的前一年
删除文件