X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F33enable_apport_crashes;h=f30065223d7d0cded4de0e0f49d24bd65dcefd6e;hb=845dee811a0159b75422eb7e4cfb6c860d39690b;hp=0f177ab4e3a27b618bcac308845f998e8e4f699b;hpb=cdb98bbbdc41b29c6b94dc5aed36393daec84cf8;p=live-boot-grml.git diff --git a/scripts/live-bottom/33enable_apport_crashes b/scripts/live-bottom/33enable_apport_crashes index 0f177ab..f300652 100755 --- a/scripts/live-bottom/33enable_apport_crashes +++ b/scripts/live-bottom/33enable_apport_crashes @@ -20,6 +20,11 @@ esac # live-initramfs header +if [ -n "${NOPROGRAMCRASHES}" ] +then + exit 0 +fi + . /scripts/live-functions log_begin_msg "Enabling notifications about program crashes..." @@ -27,8 +32,10 @@ log_begin_msg "Enabling notifications about program crashes..." # live-initramfs script update_notifier_version=$(chroot /root dpkg-query -W --showformat='${Version}' update-notifier 2>/dev/null) || update_notifier_version="" -if [ -n "$update_notifier_version" ]; then - chroot /root sudo -u "$USERNAME" gconftool-2 -t bool -s /apps/update-notifier/show_apport_crashes true + +if [ -n "${update_notifier_version}" ] +then + chroot /root sudo -u "${USERNAME}" gconftool-2 -t bool -s /apps/update-notifier/show_apport_crashes true fi log_end_msg