This should make things run more nicely on systems like FreeBSD, where bash isn't installed in /bin.
20 lines
296 B
Bash
Executable File
20 lines
296 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
case $(uname -s) in
|
|
FreeBSD)
|
|
ldconfig -elf -i -f "$1"/var/run/ld-elf.so.hints "$1"/etc/ld.so.conf
|
|
exit $?
|
|
;;
|
|
|
|
Linux)
|
|
ldconfig -r "$1"
|
|
exit $?
|
|
;;
|
|
|
|
*)
|
|
echo "!!! Don't know how to use ldconfig on this system" 1>&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|