# arg 1: the new package version post_install() { grep -v libjpeg6 /etc/ld.so.conf > /tmp/ld.so.conf mv /tmp/ld.so.conf /etc/ld.so.conf echo "/opt/libjpeg6/lib" >> /etc/ld.so.conf ldconfig } # arg 1: the new package version # arg 2: the old package version post_upgrade() { grep -v libjpeg6 /etc/ld.so.conf > /tmp/ld.so.conf mv /tmp/ld.so.conf /etc/ld.so.conf echo "/opt/libjpeg6/lib" >> /etc/ld.so.conf ldconfig } # arg 1: the old package version post_remove() { grep -v libjpeg6 /etc/ld.so.conf > /tmp/ld.so.conf mv /tmp/ld.so.conf /etc/ld.so.conf ldconfig } op=$1 shift $op $*