if grep -v -q 'the_line' ld.so.conf; then echo 'the_line' >> ld.so.conf; fi