--- /dev/null
+#!/bin/bash
+# Copyright (C) 2014 Steve Youngs <steve@steveyoungs.com>
+####
+#
+# Call ldconfig with sudo to avoid errors and warnings about not
+# having permission to change /etc/ld.so.cache
+#
+####
+
+if [ -x $(type -p sudo) ]; then
+ sudo /sbin/ldconfig "$@"
+else
+ /sbin/ldconfig "$@" || exit $?
+ echo 1>&2 '***' No sudo available, you need to run ldconfig as root
+fi
+
+exit 0
+
+
+# Local variables:
+# sh-basic-offset: 4
+# End: