Back to home page

OSCL-LXR

 
 

    


0001 #!/bin/sh
0002 # set aoe to autoload by installing the
0003 # aliases in /etc/modprobe.d/
0004 
0005 f=/etc/modprobe.d/aoe.conf
0006 
0007 if test ! -r $f || test ! -w $f; then
0008         echo "cannot configure $f for module autoloading" 1>&2
0009         exit 1
0010 fi
0011 
0012 grep major-152 $f >/dev/null
0013 if [ $? = 1 ]; then
0014         echo alias block-major-152 aoe >> $f
0015         echo alias char-major-152 aoe >> $f
0016 fi
0017