/usr/share/pmi/blacklist-modules.sh is in powermanagement-interface 0.3.20.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/bin/bash
# Walk a directory, assembling a list of modules that need to be blacklisted
# Then check which modules are loaded, and return those as a string
. /etc/default/pmi
if [ ! -d $BLACKLISTDIR ]; then
echo "No such directory $BLACKLISTDIR, exiting" >&2
exit 1
fi
for file in $(find $BLACKLISTDIR -type f -print "%p "); do
MODSLIST="$MODSLIST "$(<$file);
done
MODSLOADED=$(lsmod|awk '!/Module/ {print $1}')
for mod in $MODSLIST; do
if echo $MODSLOADED|grep -q -w "$mod"; then
BLACKLIST="$BLACKLIST $mod"
fi
done
echo $BLACKLIST
|