X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-base.git/blobdiff_plain/7d88dd5e60553000ee05b5c9e2597efab7405520..89da73a86152b5756a2d077be3cccb1c5dbf92cd:/scripts/invirt-reload diff --git a/scripts/invirt-reload b/scripts/invirt-reload index 7d819ef..84dbe7a 100755 --- a/scripts/invirt-reload +++ b/scripts/invirt-reload @@ -1,8 +1,16 @@ #!/bin/bash +if [ "$DPKG_MAINTSCRIPT_PACKAGE" != '' ] && \ + [ $# = 0 ] && \ + dpkg-trigger --check-supported 2>/dev/null; then + if dpkg-trigger --no-await invirt-base; then + echo "invirt-reload: deferring update (trigger activated)" + exit 0 + fi +fi + for script in $(run-parts --test /etc/init.d); do - if [ "${script#/etc/init.d/sipb-xen-}" != "$script" \ - -o "${script#/etc/init.d/invirt-}" != "$script" ]; then - invoke-rc.d "${script#/etc/init.d/}" reload + if [ "${script#/etc/init.d/invirt-}" != "$script" ]; then + invoke-rc.d "${script#/etc/init.d/}" force-reload fi done