#!/bin/bash
#
# Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
# Licensed under the GNU General Public License Version 3 as shown at https://www.gnu.org/licenses/gpl-3.0.txt.
whitelist="br_netfilter conntrack ip_vs ip_vs_rr ip_vs_sh ip_vs_wrr"
if ! echo "$whitelist" | grep -w "$1"; then
  echo "$1 module is not permitted by this tool"
	exit 1
fi
modprobe $1
sh -c "echo '$1' > /etc/modules-load.d/$1.conf"
