mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 23:53:55 +08:00
970e248649
Usage of /etc/modprobe.conf file was deprecated by module-init-tools and is no longer parsed by new kmod tool. References to this file are replaced in Documentation, comments and Kconfig according to the context. There are also some references to the old /etc/modules.conf from 2.4 kernels that are being removed. Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi> Acked-by: Takashi Iwai <tiwai@suse.de> Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 lines
343 B
Bash
18 lines
343 B
Bash
#!/bin/sh
|
|
# set aoe to autoload by installing the
|
|
# aliases in /etc/modprobe.d/
|
|
|
|
f=/etc/modprobe.d/aoe.conf
|
|
|
|
if test ! -r $f || test ! -w $f; then
|
|
echo "cannot configure $f for module autoloading" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
grep major-152 $f >/dev/null
|
|
if [ $? = 1 ]; then
|
|
echo alias block-major-152 aoe >> $f
|
|
echo alias char-major-152 aoe >> $f
|
|
fi
|
|
|