X-Git-Url: https://roy.marples.name/git diff --git a/libc.in b/libc.in index 5ae02f4..0f533b1 100755 --- a/libc.in +++ b/libc.in @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright 2007 Roy Marples +# Copyright 2007-2008 Roy Marples # All rights reserved # libc subscriber for resolvconf @@ -141,10 +141,13 @@ fi (umask 022; printf "${NEWCONF}" > "${RESOLVCONF}"/run/resolv.conf) resolvconf -s nscd restart +retval=$? # Notify users of the resolver for x in "${REVOLVCONF}"/update-libc.d/*; do - [ -e "${x}" ] && "${x}" "$@" + if [ -e "${x}" ]; then + "${x}" "$@" + retval=$((${retval} + $?)) + fi done - -# vim: ts=4 : +exit ${retval}