2 # Implement blacklisting for udev-loaded modules
3 # Includes module checking
4 # - Aaron Griffin & Tobias Powalowski for Archlinux
7 if [ -f /proc
/cmdline
]; then
8 for cmd
in $
(cat /proc
/cmdline
); do
15 # get the real names from modaliases
16 i
="$(/bin/moddeps $1)"
17 # add disablemodules= from commandline to blacklist
18 k
="$(/bin/replace "${disablemodules}" ',')"
19 j
="$(/bin/replace "${k}" '-' '_')"
21 if [ "${j}" != "" ] ; then
24 if [ "$n" = "$o" ]; then