📄 afbackup.preinst
字号:
#!/bin/sh -efix_cruft (){ echo "Removing superfluous /etc/services entry !" if grep -q "#-- afbackup begin" /etc/services; then TEMP=`tempfile` cat /etc/services >> $TEMP sed -e '/#-- afbackup begin/,/#-- afbackup end/d' <$TEMP >/etc/services rm $TEMP fi cat <<.EOFIf you get asked to overwrite your old configuration, please do so! Youcan easily reconfigure your system with afserverconfig orxafserverconfig. The existing status information will not be touched..EOF}ask_abort (){ cat <<.EOFYou are upgrading from an incompatible version of afbackup. You have toupgrade all your machines to the current version of afbackup andafbackup-client or you should abort upgrading now.Do you want to abort? (y/N).EOF read ANSWER case "$ANSWER" in y|Y) exit 1 ;; esac} case "$1" in upgrade) case "$2" in 2.6*) fix_cruft ask_abort ;; 2*|3.1*|3.3.[1-6]*) ask_abort ;; esac ;; install|abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 0 ;;esac#DEBHELPER#
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -