文件操作 - kmod.postinst
返回文件管理
返回主菜单
删除本文件
文件: /var/lib/dpkg/info/kmod.postinst
编辑文件内容
#!/bin/sh -e create_etc_modules() { [ -e /etc/modules ] && return 0 cat <<END > /etc/modules # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. # Parameters can be specified after the module name. END chmod 644 /etc/modules } case "$1" in configure) create_etc_modules esac # Automatically added by dh_installinit/13.11.1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -x "/etc/init.d/kmod" ]; then update-rc.d kmod defaults >/dev/null || exit 1 fi fi # End automatically added section exit 0
修改文件时间
将文件时间修改为当前时间的前一年
删除文件