added missing start.sh script to repo
This commit is contained in:
32
start.sh
Normal file
32
start.sh
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
function start_service() {
|
||||||
|
echo -n "Starting Service... "
|
||||||
|
/etc/init.d/kesl-supervisor start && echo "Done!" || echo "Failed!"
|
||||||
|
}
|
||||||
|
|
||||||
|
case "${1}" in
|
||||||
|
shell )
|
||||||
|
echo "stage: ${1}"
|
||||||
|
start_service
|
||||||
|
echo "Usage:"
|
||||||
|
echo "kesl-control --scan-file <path>"
|
||||||
|
/bin/bash
|
||||||
|
;;
|
||||||
|
version )
|
||||||
|
echo "stage: ${1}"
|
||||||
|
start_service
|
||||||
|
kesl-control -S --app-info
|
||||||
|
;;
|
||||||
|
scan )
|
||||||
|
echo "stage: ${1}"
|
||||||
|
start_service
|
||||||
|
echo "Starting Scan of /data:"
|
||||||
|
kesl-control --scan-file /data
|
||||||
|
echo "Found Threats"
|
||||||
|
kesl-control -B --query
|
||||||
|
;;
|
||||||
|
debug )
|
||||||
|
echo "stage: ${1}"
|
||||||
|
/bin/bash
|
||||||
|
;;
|
||||||
|
esac
|
||||||
Reference in New Issue
Block a user