Ignore:
Timestamp:
Jan 27, 2010, 9:53:16 PM (14 years ago)
Author:
broder
Message:

Add code to invirt-reload to de-duplicate multiple invocations. (LP: #439426)

This uses the dpkg triggers mechanism to de-duplicate multiple
invocations of invirt-reload over the course of a single dpkg run.

The code is largely lifted from Ubuntu's update-initramfs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-base/scripts/invirt-reload

    r1609 r2941  
    11#!/bin/bash
     2
     3if [ "$DPKG_MAINTSCRIPT_PACKAGE" != '' ] && \
     4    [ $# = 0 ] && \
     5    dpkg-trigger --check-supported 2>/dev/null; then
     6    if dpkg-trigger --no-await invirt-base; then
     7        echo "invirt-reload: deferring update (trigger activated)"
     8        exit 0
     9    fi
     10fi
    211
    312for script in $(run-parts --test /etc/init.d); do
Note: See TracChangeset for help on using the changeset viewer.