#!/bin/bash PLAT_FUNCS="/usr/local/sbin/nv_scripts/plat_funcs.bash" CONF_FILE="/etc/default/grub.d/enable-power-meter-cap.cfg" GENERAL_FUNCS="/usr/local/sbin/nv_scripts/general_funcs.bash" . "${GENERAL_FUNCS}" . "${PLAT_FUNCS}" if skip_platform_detection || plat_needs_enable_power_meter_config; then echo 'GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX acpi_power_meter.force_cap_on=y"' > ${CONF_FILE} /usr/sbin/update-grub ||: fi exit 0