initial commit
This commit is contained in:
24
coordinator
Executable file
24
coordinator
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
#################
|
||||
#
|
||||
# Neighborhood Watch Coordinator
|
||||
#
|
||||
|
||||
# Discover my own location
|
||||
#
|
||||
SCRIPT_PATH="${BASH_SOURCE[0]}";
|
||||
if ([ -h "${SCRIPT_PATH}" ]) then
|
||||
while([ -h "${SCRIPT_PATH}" ]) do SCRIPT_PATH=`readlink "${SCRIPT_PATH}"`; done
|
||||
fi
|
||||
pushd . > /dev/null
|
||||
cd `dirname ${SCRIPT_PATH}` > /dev/null
|
||||
SCRIPT_PATH=`pwd`;
|
||||
popd > /dev/null
|
||||
|
||||
cd ${SCRIPT_PATH}
|
||||
|
||||
. neighborhoodwatch.conf
|
||||
|
||||
run-parts $RUN_PATH
|
||||
|
||||
Reference in New Issue
Block a user