1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
post_install() { [ -e /etc/ld.so.preload ] || install -m 644 /dev/null /etc/ld.so.preload sed -i -e '/librl_custom_function.so/d' /etc/ld.so.preload echo '/usr/$LIB/librl_custom_function.so' >> /etc/ld.so.preload } post_upgrade() { post_install } post_remove() { sed -i -e '/librl_custom_function.so/d' /etc/ld.so.preload }