#!/bin/bash

key_1="blacklist b43"
confile_1="/etc/modprobe.d/bcm.conf"
key_2="blacklist wl"
confile_2="/etc/modprobe.d/bcm.conf"
key_3="brcmsmac"
confile_3="/etc/modules"

if is_context_exists "$key_1" "$confile_1"; then
    :
else
    echo "$key_1" | tee -a "$confile_1"
fi

if is_context_exists "$key_2" "$confile_2"; then
    :
else
    echo "$key_2" | tee -a "$confile_2"
fi

if is_context_exists "$key_3" "$confile_3"; then
    :
else
    echo "$key_3" | tee -a "$confile_3"
fi
