Code Sample |
rm /etc/ld.so.conf rm /etc/ld.so.cache cp /KNOPPIX/etc/ld.so.conf /etc/ld.so.conf cp /KNOPPIX/etc/ld.so.cache /etc/ld.so.cache |
Code Sample |
#!/bin/bash # # an example of getting around ld.so.cache and ld.so.conf problems # # check first to see if your files are already in the ld.so.conf # this will avoid duplicate entries # # test for atlas being installed already # if true ###### if grep /usr/lib/atlas /etc/ld.so.conf > /dev/null ### failed, why??? then echo it's already loaded # assume it went well before and exit else echo it wasn't there if [ -L /etc/ld.so.cache ] # if it's a symbolic link, we need to replace it with a real file then echo it was a symbolic link sudo rm -f /etc/ld.so.cache sudo cp /KNOPPIX/etc/ld.so.cache /etc/ld.so.cache fi cat /etc/ld.so.conf > /home/dsl/tmpconfig echo /usr/lib/atlas >> /home/dsl/tmpconfig sudo ldconfig -f /home/dsl/tmpconfig rm tmpconfig fi exit |
Code Sample |
if test `grep word file -c` -ge 1 then echo true else echo false fi |