diff --git a/generate-kmod-blacklist-aggregate.sh b/generate-kmod-blacklist-aggregate.sh index b43017a..bc5963b 100755 --- a/generate-kmod-blacklist-aggregate.sh +++ b/generate-kmod-blacklist-aggregate.sh @@ -14,6 +14,8 @@ # License for the specific language governing permissions and limitations under # the License. +set -eu + output(){ echo -e '\e[36m'"$1"'\e[0m'; } diff --git a/generate-kmod-blacklist.sh b/generate-kmod-blacklist.sh index 78f367f..b5a2ef8 100644 --- a/generate-kmod-blacklist.sh +++ b/generate-kmod-blacklist.sh @@ -14,6 +14,8 @@ # License for the specific language governing permissions and limitations under # the License. +set -eu + # List available modules # shellcheck disable=SC2010 ls -R /lib/modules/"$(uname -r)"/kernel/{drivers,fs,net,sound} | grep "\.ko" | sed 's/.ko.xz//g' | sed 's/.ko.zst//g' > blacklist.txt