#!/bin/bash

key="r8168.aspm=1"
confile="/etc/default/grub.d/01_setup_r8168_aspm.cfg"

if is_context_exists "$key" "$confile"; then
    return 0
fi

cat > "$confile" << EOF
GRUB_CMDLINE_LINUX_DEFAULT="\$GRUB_CMDLINE_LINUX_DEFAULT r8168.aspm=1"
EOF
