[go: up one dir, main page]

Menu

[r33]: / trunk / configure  Maximize  Restore  History

Download this file

50 lines (39 with data), 913 Bytes

#! /bin/bash

OK=1

if [ ! -e /usr/bin/uuidgen ]; then
   echo "Please install /usr/bin/uuidgen"
   OK=0
fi

if [ ! -e /sbin/cryptsetup ]; then
   echo "Please install /sbin/cryptsetup (cryptsetup package)"
   OK=0
fi

if [ ! -e /usr/bin/sudo ]; then
   echo "Please install /usr/bin/sudo (sudo package)"
   OK=0
fi

if [ ! -e /usr/sbin/smartctl ]; then
   echo "Please install /usr/sbin/smartctl"
   OK=0
fi

if [ ! -e /sbin/hdparm ]; then
   echo "Please install /sbin/hdparm"
   OK=0
fi

if ! perl -e 'use IPC::Run' &> /dev/null; then
   echo "Please install Perl module IPC::Run"
   OK=0
fi

if [ ! -e /usr/bin/lsof ]; then
   echo "Please install /usr/bin/lsof (lsof package)"
   OK=0
fi

if [ $OK = "0" ]; then
   echo "Exiting."
   exit 1
fi

echo "OpenSANd is ready to install. Please execute"
echo "   make"
echo "   make install"
echo
echo "Also make sure you follow the instructions in HOWTO_INSTALL!"