文件操作 - iputils-ping.postinst
返回文件管理
返回主菜单
删除本文件
文件: /var/lib/dpkg/info/iputils-ping.postinst
编辑文件内容
#!/bin/sh set -e PROGRAM=$(dpkg-divert --truename /bin/ping) if [ "$1" = configure ]; then # If we have setcap installed, try setting cap_net_raw+ep, # which allows us to install our binaries without the setuid # bit. if command -v setcap > /dev/null; then if setcap cap_net_raw+ep $PROGRAM; then chmod u-s $PROGRAM else echo "Setcap failed on $PROGRAM, falling back to setuid" >&2 chmod u+s $PROGRAM fi else echo "Setcap is not installed, falling back to setuid" >&2 chmod u+s $PROGRAM fi fi exit 0 # Local variables: # mode: shell-script # tab-width: 4 # indent-tabs-mode: nil # end:
修改文件时间
将文件时间修改为当前时间的前一年
删除文件