summaryrefslogtreecommitdiff
path: root/sysutils/linux-megacli2/files/megacli.sh.in
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2008-02-24 03:11:57 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2008-02-24 03:11:57 +0000
commitfa4a943c17e47bf910596a414fd7287983350b9b (patch)
treedc76cec18a505befc330e612e0a56bf1caa5ca49 /sysutils/linux-megacli2/files/megacli.sh.in
parent- Fix manpage pointing to correct PREFIX for binary and conf (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_7_0_0'.release/7.0.0
Diffstat (limited to 'sysutils/linux-megacli2/files/megacli.sh.in')
-rw-r--r--sysutils/linux-megacli2/files/megacli.sh.in45
1 files changed, 0 insertions, 45 deletions
diff --git a/sysutils/linux-megacli2/files/megacli.sh.in b/sysutils/linux-megacli2/files/megacli.sh.in
deleted file mode 100644
index f28e45bc8a97..000000000000
--- a/sysutils/linux-megacli2/files/megacli.sh.in
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-
-# check for root user
-#
-if [ `id -u` -ne 0 ]
-then
- echo "You must be root to run `basename $0`." >&2
- exit 1
-fi
-
-if ! [ `sysctl -n compat.linux.osrelease` = "2.6.12" ]; then
- echo "You need to set compat.linux.osrelease to 2.6.12 to run `basename $0`." >&2
- exit 1
-fi
-
-lpfs=`mount -t linprocfs | wc -l | awk '{ print $1 }'`
-if [ ${lpfs} -le 0 ]; then
- echo "You need to mount linprocfs to run `basename $0`." >&2
- exit 1
-fi
-lsfs=`mount -t linsysfs | wc -l | awk '{ print $1 }'`
-if [ ${lsfs} -le 0 ]; then
- echo "You need to mount linsysfs to run `basename $0`." >&2
- exit 1
-fi
-
-# check for active mfi_linux.ko
-#
-if ! kldstat -q -m mfi_linux
-then
- if kldload mfi_linux
- then
- echo 'mfi_linux module loaded.' >&2
- else
- echo 'mfi_linux module failed to load.' >&2
- exit 1
- fi
-fi
-
-if [ $# -le 0 ]; then
- echo "usage: `basename $0` [options]" >&2
- exec %%PREFIX%%/libexec/MegaCli -h
-fi
-
-exec %%PREFIX%%/libexec/MegaCli ${*}