文件操作 - klibc-utils
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/initramfs-tools/hooks/klibc-utils
编辑文件内容
#!/bin/sh prereqs() { if [ "${BUSYBOX}" = "n" ] || [ -z "${BUSYBOXDIR}" ]; then echo '' else # Ensure busybox installs all its commands before # checking what we should provide echo zz-busybox fi } case $1 in # get pre-requisites prereqs) prereqs exit 0 ;; esac for src in /usr/lib/klibc/bin/*; do command="$(basename "$src")" case "$command" in gzip | kinit | zcat) # Don't install; these will not be needed ;; *) # Don't install commands that already exist in /bin or /sbin if ! [ -e "${DESTDIR}/sbin/$command" ]; then cp -pnL "$src" "${DESTDIR}/bin" fi ;; esac done cp -pL /lib/klibc-*.so "${DESTDIR}/lib"
修改文件时间
将文件时间修改为当前时间的前一年
删除文件