#!/bin/bash

## Copyright (C) 2012 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

disclaimer() {
   if [ "$qubes_detected" = "true" ]; then
      true "INFO: qubes_detected is $qubes_detected, therefore skipping $FUNCNAME."
      return 0
   fi

   if [ "$VM" = "machine" ]; then
      local MSG="<p><a href=$PROJECT_HOMEPAGE>$PROJECT_NAME</a> is a research project.</p>"
   else
      local MSG="<p><a href=$PROJECT_HOMEPAGE>$PROJECT_NAME</a> is produced independently of, with no guarantee from, The Tor Project. $PROJECT_NAME is a research project."
   fi

   $output_x ${output_opts[@]} --messagex --typex "info" --message "$MSG"
   $output_cli ${output_opts[@]} --messagecli --typecli "info" --message "$MSG"
}
