ia64/linux-2.6.18-xen.hg

view Documentation/aoe/autoload.sh @ 524:7f8b544237bf

netfront: Allow netfront in domain 0.

This is useful if your physical network device is in a utility domain.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 15 15:18:58 2008 +0100 (2008-04-15)
parents 831230e53067
children
line source
1 #!/bin/sh
2 # set aoe to autoload by installing the
3 # aliases in /etc/modprobe.conf
5 f=/etc/modprobe.conf
7 if test ! -r $f || test ! -w $f; then
8 echo "cannot configure $f for module autoloading" 1>&2
9 exit 1
10 fi
12 grep major-152 $f >/dev/null
13 if [ $? = 1 ]; then
14 echo alias block-major-152 aoe >> $f
15 echo alias char-major-152 aoe >> $f
16 fi