mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00: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>
17 lines
343 B
Bash
17 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
|
|
|