1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/sh REPLACES_BINARIES="/usr/bin/lpr /usr/bin/lp /usr/bin/lpq /usr/bin/lprm /usr/bin/lpstat /usr/sbin/lpc" case $2 in POST-DEINSTALL) for FILE in ${REPLACES_BINARIES}; do [ -L "${FILE}" ] && rm "${FILE}" [ -e "${FILE}.bak" ] && mv "${FILE}.bak" "${FILE}" done ;; esac exit 0