Code Sample |
#!/bin/bash # Add path to gtk libs to ld.so.conf if grep -q '/opt/gtk+-2.12.9/lib' /etc/ld.so.conf; then # already done exit 1; fi if [ -L /etc/ld.so.conf ]; then rm -f /etc/ld.so.conf cp /KNOPPIX/etc/ld.so.conf /etc/ld.so.conf else cp -f /etc/ld.so.conf /etc/ld.so.conf.bak fi sed -i '1 i\ /opt/gtk+-2.12.9/lib' /etc/ld.so.conf ldconfig exit 0 |