https://github.com/torvalds/linux
Raw File
Tip revision: c16fa4f2ad19908a47c63d8fa436a1178438c7e7 authored by Linus Torvalds on 18 March 2012, 23:15:34 UTC
Linux 3.3
Tip revision: c16fa4f
autoload.sh
#!/bin/sh
# set aoe to autoload by installing the
# aliases in /etc/modprobe.conf

f=/etc/modprobe.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

back to top