1 #!/bin/sh 1 #!/bin/sh 2 # set aoe to autoload by installing the 2 # set aoe to autoload by installing the 3 # aliases in /etc/modprobe.d/ 3 # aliases in /etc/modprobe.d/ 4 4 5 f=/etc/modprobe.d/aoe.conf 5 f=/etc/modprobe.d/aoe.conf 6 6 7 if test ! -r $f || test ! -w $f; then 7 if test ! -r $f || test ! -w $f; then 8 echo "cannot configure $f for module a 8 echo "cannot configure $f for module autoloading" 1>&2 9 exit 1 9 exit 1 10 fi 10 fi 11 11 12 grep major-152 $f >/dev/null 12 grep major-152 $f >/dev/null 13 if [ $? = 1 ]; then 13 if [ $? = 1 ]; then 14 echo alias block-major-152 aoe >> $f 14 echo alias block-major-152 aoe >> $f 15 echo alias char-major-152 aoe >> $f 15 echo alias char-major-152 aoe >> $f 16 fi 16 fi 17 17
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.