Adding live-initramfs 1.87.1-1.
[live-boot-grml.git] / scripts / live-bottom / 33enable_apport_crashes
1 #!/bin/sh
2
3 PREREQ=""
4 DESCRIPTION="Enabling notifications about program crashes..."
5
6 . /scripts/live-functions
7
8 prereqs()
9 {
10        echo "$PREREQ"
11 }
12
13 case $1 in
14 # get pre-requisites
15 prereqs)
16        prereqs
17        exit 0
18        ;;
19 esac
20
21 log_begin_msg "$DESCRIPTION"
22
23 update_notifier_version=$(chroot /root dpkg-query -W --showformat='${Version}' update-notifier 2>/dev/null) || update_notifier_version=""
24 if [ -n "$update_notifier_version" ]; then
25     chroot /root sudo -u "$USERNAME" gconftool-2 -t bool -s /apps/update-notifier/show_apport_crashes true
26 fi
27
28 log_end_msg