Releasing debian version 1.236.2-1.
[live-boot-grml.git] / scripts / live-bottom / 31disable_update_notifier
1 #!/bin/sh
2
3 #set -e
4
5 # initramfs-tools header
6
7 PREREQ=""
8
9 prereqs()
10 {
11         echo "${PREREQ}"
12 }
13
14 case "${1}" in
15         prereqs)
16                 prereqs
17                 exit 0
18                 ;;
19 esac
20
21 # live-initramfs header
22
23 if [ -n "${NOUPDATENOTIFIER}" ]
24 then
25         exit 0
26 fi
27
28 . /scripts/live-functions
29
30 log_begin_msg "Disabling update-notifier"
31
32 # live-initramfs script
33
34 # For GNOME, we divert away apt-check to avoid a regular 'apt-get update'
35 # equivalent in the live session. We want to run update-notifier for crash
36 # report handling.
37 chroot /root dpkg-divert --add --rename --quiet \
38         /usr/lib/update-notifier/apt-check
39
40 if [ -e /root/usr/lib/update-notifier/apt-check ]
41 then
42         ln -sf /bin/true /root/usr/lib/update-notifier/apt-check
43 fi
44
45 # For KDE, adept_notifier's only useful function at the moment is an
46 # 'apt-get update' equivalent, so we disable it entirely.
47 rm -f /root/usr/share/autostart/adept_notifier_auto.desktop
48
49 log_end_msg