case "$MODE" in
    commandline)
        add_option "disable-cron" "`eval_gettext "disable cron from running on the clients"`" "advanced" "false"
        ;;

    configure)
        if [ -n "$option_disable_cron_value" ]; then
            DISABLE_CRON="True"
        fi
        ;;

    after-install)
        test "$DISABLE_CRON" = "True" || return 0

        # Divert cron.conf and anacron.conf to prevent them from starting
        # No need to check if the packages are there, as they might get
        # installed after ltsp-build-client finishes.
        chroot "$ROOT" dpkg-divert --divert /etc/anacron.conf --rename /etc/init/anacron.conf
        chroot "$ROOT" dpkg-divert --divert /etc/cron.conf --rename /etc/init/cron.conf
    ;;
esac
