projects
/
ossec-hids.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
- add lintian overrides
[ossec-hids.git]
/
src
/
init
/
functions.sh
1
#!/bin/sh
2
# Shell script functions for the OSSEC HIDS
3
# Author: Daniel B. Cid <daniel.cid@gmail.com>
4
# Last modification: Mar 02, 2006
5
6
7
TRUE="true";
8
FALSE="false";
9
10
11
##########
12
# isFile
13
##########
14
isFile()
15
{
16
FILE=$1
17
ls ${FILE} >/dev/null 2>&1
18
if [ $? = 0 ]; then
19
echo "${TRUE}"
20
return 0;
21
fi
22
echo "${FALSE}"
23
return 1;
24
}
25
26