You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
314 B
13 lines
314 B
2 years ago
|
#!/bin/sh
|
||
|
|
||
|
# don't cripple the image to be copied over
|
||
|
[ -x /usr/sbin/live-install -o -x /usr/sbin/livecd-install ] && exit 0
|
||
|
|
||
|
# blacklisted kernel modules
|
||
|
sed -n 's/^blacklist[[:space:]]\+\([^[:space:]]\+\).*/\1/p' /etc/modprobe.d/* |
|
||
|
while read i; do
|
||
|
find /lib/modules/ -type f -name "$i.ko" -delete
|
||
|
done
|
||
|
|
||
|
:
|