Browse Source
due to popular demand, this module loads a custom kernel module, after the first udev settle (all basic device drivers loaded)master

4 changed files with 30 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||||||
|
#!/bin/bash |
||||||
|
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- |
||||||
|
# ex: ts=8 sw=4 sts=4 et filetype=sh |
||||||
|
|
||||||
|
exit 0 |
@ -0,0 +1,8 @@ |
|||||||
|
#!/bin/sh |
||||||
|
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- |
||||||
|
# ex: ts=8 sw=4 sts=4 et filetype=sh |
||||||
|
. /lib/dracut-lib.sh |
||||||
|
|
||||||
|
for p in $(getargs rdinsmodpost=); do |
||||||
|
modprobe $p |
||||||
|
done |
@ -0,0 +1,6 @@ |
|||||||
|
#!/bin/bash |
||||||
|
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- |
||||||
|
# ex: ts=8 sw=4 sts=4 et filetype=sh |
||||||
|
|
||||||
|
inst_hook cmdline 20 "$moddir/parse-insmodpost.sh" |
||||||
|
inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh |
@ -0,0 +1,11 @@ |
|||||||
|
#!/bin/sh |
||||||
|
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- |
||||||
|
# ex: ts=8 sw=4 sts=4 et filetype=sh |
||||||
|
|
||||||
|
for p in $(getargs rdinsmodpost=); do |
||||||
|
echo "blacklist $p" >> /etc/modprobe.d/initramfsblacklist.conf |
||||||
|
_do_insmodpost=1 |
||||||
|
done |
||||||
|
|
||||||
|
[ -n "$_do_insmodpost" ] && /sbin/initqueue --settled --unique --onetime /sbin/insmodpost.sh |
||||||
|
unset _do_insmodpost |
Loading…
Reference in new issue