jannet: Fix state check

This commit is contained in:
Jan Lindemann 2008-04-10 06:52:43 +00:00 committed by Jan Lindemann
commit 19ea308ca3

View file

@ -62,11 +62,7 @@ create_ldconfig_state()
check_ldconfig()
{
local state=/var/log/ytools-ldconf.state
if [ -f $state ]; then
if ! create_ldconfig_state | diff $state -; then
return 0
fi
fi
[ -f $state ] && create_ldconfig_state | diff $state - >/dev/null 2>&1 && return
echo -n "running ldconfig ... "
/sbin/ldconfig
create_ldconfig_state > $state