5 # initramfs-tools header
21 # live-initramfs header
23 if [ -n "${NOUPDATENOTIFIER}" ]
28 . /scripts/live-functions
30 log_begin_msg "Disabling update-notifier"
32 # live-initramfs script
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
37 chroot /root dpkg-divert --add --rename --quiet \
38 /usr/lib/update-notifier/apt-check
40 if [ -e /root/usr/lib/update-notifier/apt-check ]
42 ln -s /bin/true /root/usr/lib/update-notifier/apt-check
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