aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/aoe/autoload.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/aoe/autoload.sh')
-rw-r--r--Documentation/aoe/autoload.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/aoe/autoload.sh b/Documentation/aoe/autoload.sh
new file mode 100644
index 000000000000..78dad1334c6f
--- /dev/null
+++ b/Documentation/aoe/autoload.sh
@@ -0,0 +1,17 @@
1#!/bin/sh
2# set aoe to autoload by installing the
3# aliases in /etc/modprobe.conf
4
5f=/etc/modprobe.conf
6
7if test ! -r $f || test ! -w $f; then
8 echo "cannot configure $f for module autoloading" 1>&2
9 exit 1
10fi
11
12grep major-152 $f >/dev/null
13if [ $? = 1 ]; then
14 echo alias block-major-152 aoe >> $f
15 echo alias char-major-152 aoe >> $f
16fi
17