swh:1:snp:c3bf2749e3476071fa748f67b0ffa2fdc5fe49d9
Raw File
Tip revision: 899e3ee404961a90b828ad527573aaaac39f0ab1 authored by Linus Torvalds on 18 October 2011, 04:06:23 UTC
Linux 3.1-rc10
Tip revision: 899e3ee
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