POSTIN
/bin/sh
if ! grep -q '\[ -f '/etc'/bash_completion \]' \
/etc/bashrc 2>/dev/null; then
cat <<'EOF' >> /etc/bashrc
# START bash completion -- do not remove this line
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
if [ "$PS1" ] && [ "$bmajor" -eq 2 ] && [ "$bminor" '>' 04 ] \
&& [ -f /etc/bash_completion ]; then # interactive shell
# Source completion code
. /etc/bash_completion
fi
unset bash bmajor bminor
# END bash completion -- do not remove this line
EOF
fi
POSTUN
/bin/sh
if [ "$1" -eq 0 ]; then
sed -e '/^# START bash completion/,/^# END bash completion/d' /etc/bashrc \
> /etc/bashrc.tmp
mv -f /etc/bashrc.tmp /etc/bashrc
fi
chmod 644 /etc/bashrc