#!/bin/sh

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

# audit_wake_on_lan
#
# Refer to Section(s) 2.5.1 Page(s) 26-7  CIS Apple OS X 10.8  Benchmark v1.0.0
# Refer to Section(s) 2.5.1 Page(s) 50-1  CIS Apple OS X 10.12 Benchmark v1.0.0
# Refer to Section(s) 2.9.3 Page(s) 212-6 CIS Apple macOS 14 Sonoma Benchmark v1.0.0
#.

audit_wake_on_lan() {
  print_function "audit_wake_on_lan"
  string="Wake on Lan"
  check_message  "${string}"
  if [ "${os_name}" = "Darwin" ]; then
    check_pmset "womp" "off"
  else
    na_message "${string}"
  fi
}
