source: trunk/packages/invirt-base/scripts/invirt-reload @ 3003

Last change on this file since 3003 was 2966, checked in by broder, 15 years ago

Fix invirt-base's handling of triggers.

  • Property svn:executable set to *
File size: 496 bytes
Line 
1#!/bin/bash
2
3if [ x"$INVIRT_RELOAD_NOTRIGGER" = x ] && \
4    [ "$DPKG_MAINTSCRIPT_PACKAGE" != '' ] && \
5    [ $# = 0 ] && \
6    dpkg-trigger --check-supported 2>/dev/null; then
7    if dpkg-trigger --no-await invirt-reload; then
8        echo "invirt-reload: deferring update (trigger activated)"
9        exit 0
10    fi
11fi
12
13for script in $(run-parts --test /etc/init.d); do
14    if [ "${script#/etc/init.d/invirt-}" != "$script" ]; then
15        invoke-rc.d "${script#/etc/init.d/}" force-reload
16    fi
17done
Note: See TracBrowser for help on using the repository browser.