X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F33enable_apport_crashes;h=747ba26a2a48377eccef5f56ee80477dd53b6007;hb=13040ad5e4f230cdfecd278a3bf134110fc48f87;hp=0f177ab4e3a27b618bcac308845f998e8e4f699b;hpb=ccea277caf476cdfef4c0f953df5a97062d8be42;p=live-boot-grml.git diff --git a/scripts/live-bottom/33enable_apport_crashes b/scripts/live-bottom/33enable_apport_crashes index 0f177ab..747ba26 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