PageRenderTime 25ms CodeModel.GetById 19ms app.highlight 5ms RepoModel.GetById 0ms app.codeStats 0ms

/Documentation/aoe/autoload.sh

https://bitbucket.org/abioy/linux
Shell | 17 lines | 10 code | 4 blank | 3 comment | 4 complexity | 58bfcce81388fd3afb13f73dd7990465 MD5 | raw file
Possible License(s): CC-BY-SA-3.0, GPL-2.0, LGPL-2.0, AGPL-1.0
 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