fi
if [ $(id -u) -eq 0 ]; then
- /sbin/ldconfig
+ if [ -f $rootdir/sbin/ldconfig ]; then
+ $rootdir/sbin/ldconfig -r ${rootdir:-/}
+ elif [ -f /sbin/ldconfig ]; then
+ /sbin/ldconfig -r ${rootdir:-/}
+ else
+ true
+ fi
fi
# TODO skip configure if not on a terminal, regardless of settings