2 # Copyright (C) 2014 Steve Youngs <steve@steveyoungs.com>
5 # Call ldconfig with sudo to avoid errors and warnings about not
6 # having permission to change /etc/ld.so.cache
10 if [ -x $(type -p sudo) ]; then
11 sudo /sbin/ldconfig "$@"
13 /sbin/ldconfig "$@" || exit $?
14 echo 1>&2 '***' No sudo available, you need to run ldconfig as root