cjohnson496
4/25/2017 - 9:33 PM

Script or function listing kernel modules.

Script or function listing kernel modules.

#!/bin/bash
. /etc/sysconfig/kernel
for i in $INITRD_MODULES $DOMU_INITRD_MODULES $MODULES_LOADED_ON_BOOT
do
  if ! lsmod | grep"^$i[[:space:]]"&>/dev/null; then
    echo $i
  fi
done; echo