Sophie

Sophie

distrib > Mandriva > 2011.0 > x86_64 > by-pkgid > ec8cc6ad5e0f6fe064f830c1071569ae > files > 379

kernel-rsbac-doc-3.0.41-1.noarch.rpm

#!/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