~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to data/notify-reboot-required

  • Committer: Julian Andres Klode
  • Date: 2019-04-29 19:38:51 UTC
  • Revision ID: juliank@ubuntu.com-20190429193851-501astod6vchq39j
Tags: 3.192.20
releasing package update-notifier version 3.192.20

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# a) it breaks if its not available
5
5
# b) the string we have here does not need it (because it has no vars)
6
6
eval_gettext() {
7
 
    echo $(gettext "$1")
 
7
    if [ -x /usr/bin/gettext ]; then
 
8
        echo $(gettext "$1")
 
9
    else
 
10
        echo "$1"
 
11
    fi
8
12
}
9
13
export TEXTDOMAIN=update-notifier
10
14
export TEXTDOMAINDIR=/usr/share/locale
11
15
 
 
16
case "$DPKG_MAINTSCRIPT_PACKAGE::$DPKG_MAINTSCRIPT_NAME" in
 
17
    linux-image-extra*::postrm)
 
18
        exit 0;;
 
19
esac
 
20
 
12
21
if [ "$0" = "/etc/kernel/postinst.d/update-notifier" ]; then
13
22
    DPKG_MAINTSCRIPT_PACKAGE=linux-base
14
23
fi