#!/bin/sh which dirname >/dev/null # does dirname exit? if [ $? = 0 ] ; then cwd=`dirname $0` if [ x$cwd = x. ]; then cwd=`pwd` fi if [ x$cwd = x/usr/local/bacula/bin ] ; then echo "bconsole not properly installed." exit 1 fi fi if [ x/usr/local/bacula/bin = x/etc ]; then echo "bconsole not properly installed." exit 1 fi if [ $# = 1 ] ; then echo "doing bconsole $1.conf" /usr/local/bacula/bin/bconsole -c $1.conf else /usr/local/bacula/bin/bconsole -c /etc/bconsole.conf fi