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