#!/bin/sh

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

# audit_bootparams
#
# Turn off bootparamd
#.

audit_bootparams () {
  print_function "audit_bootparams"
  string="Bootparams Daemon"
  check_message  "${string}"
  if [ "${os_name}" = "SunOS" ] || [ "${os_name}" = "Linux" ]; then
    if [ "${os_name}" = "SunOS" ]; then
      if [ "${os_version}" -gt 9 ]; then
        check_sunos_service "svc:/network/rpc/bootparams:default" "disabled"
      fi
    fi
    if [ "${os_name}" = "Linux" ]; then
      check_linux_service   "bootparamd" "off"
    fi
  else
    na_message "${string}"
  fi
}
