#!/bin/sh

# shellcheck disable=SC1090
# shellcheck disable=SC2034
# shellcheck disable=SC2154

# audit_talk_client
#
# Uninstall talk client
#
# Refer to Section(s) 2.1.9 Page(s) 53    CIS CentOS Linux 6 Benchmark v1.0.0
# Refer to Section(s) 2.1.9 Page(s) 61    CIS RHEL 5 Benchmark v2.1.0
# Refer to Section(s) 2.1.9 Page(s) 55-6  CIS RHEL 6 Benchmark v1.2.0
# Refer to Section(s) 2.3.3 Page(s) 126   CIS RHEL 7 Benchmark v2.1.0
# Refer to Section(s) 5.2.6 Page(s) 43-4  CIS SLES 11 Benchmark v1.0.0
# Refer to Section(s) 2.3.3 Page(s) 113   CIS Amazon Linux Benchmark v2.0.0
# Refer to Section(s) 2.3.3 Page(s) 122   CIS Ubuntu 16.04 Benchmark v1.0.0
# Refer to Section(s) 2.2.3 Page(s) 296-7 CIS Ubuntu 24.04 Benchmark v1.0.0
#.

audit_talk_client () {
  print_function "audit_talk_client"
  string="Talk Client"
  check_message  "${string}"
  if [ "${os_name}" = "Linux" ]; then
    check_linux_package "uninstall" "talk"
  else
    na_message "${string}"
  fi
}
