#!/bin/bash PLAT_FUNCS="/usr/local/sbin/nv_scripts/plat_funcs.bash" CONF_FILE="/etc/default/grub.d/disable-init-on-alloc.cfg" GENERAL_FUNCS="/usr/local/sbin/nv_scripts/general_funcs.bash" . "${GENERAL_FUNCS}" . "${PLAT_FUNCS}" if skip_platform_detection || plat_needs_disable_init_on_alloc; then echo 'GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX init_on_alloc=0"' > ${CONF_FILE} /usr/sbin/update-grub ||: fi exit 0