"Fossies" - the Fresh Open Source Software archive

Member "evlog-1.6.1/user/cmd/ela/ela_show" of archive evlog-1.6.1.tar.gz:


#!/bin/bash

ela_name=$1
EVLNOTIFY=/sbin/evlnotify
if [ -z "$ela_name" ]; then
	echo "Usage:"
	echo "    ela_show <rule_name>"
	exit 1
fi

uid=`id -u`
if [ $uid != "0" ]; then
	echo "ERROR: Only root is allowed to use the ela tools"
	exit 1
fi

$EVLNOTIFY -s ${ela_name}