OpenSANd Code
Brought to you by:
hoefer
#! /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!"