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

Last change on this file since 3019 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
RevLine 
[702]1#!/bin/bash
2
[2966]3if [ x"$INVIRT_RELOAD_NOTRIGGER" = x ] && \
4    [ "$DPKG_MAINTSCRIPT_PACKAGE" != '' ] && \
[2941]5    [ $# = 0 ] && \
6    dpkg-trigger --check-supported 2>/dev/null; then
[2966]7    if dpkg-trigger --no-await invirt-reload; then
[2941]8        echo "invirt-reload: deferring update (trigger activated)"
9        exit 0
10    fi
11fi
12
[702]13for script in $(run-parts --test /etc/init.d); do
[1499]14    if [ "${script#/etc/init.d/invirt-}" != "$script" ]; then
[1609]15        invoke-rc.d "${script#/etc/init.d/}" force-reload
[702]16    fi
17done
Note: See TracBrowser for help on using the repository browser.