22 lines
510 B
Bash
Executable File
22 lines
510 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# TODO: we should remove everything, except for "invoke-rc.d"
|
|
|
|
# read the default setting file, if it exists
|
|
[ -e /etc/default/cryptobox ] && . /etc/default/cryptobox
|
|
|
|
# set CONF_FILE to default value, if not configured in /etc/default/cryptobox
|
|
CONF_FILE=${CONF_FILE:-/etc/cryptobox/cryptobox.conf}
|
|
|
|
# parse config file
|
|
if test -e "$CONF_FILE"
|
|
then source "$CONF_FILE"
|
|
else echo "[$(basename $0)] - configuration file ($CONF_FILE) not found!" >&2
|
|
exit 1
|
|
fi
|
|
|
|
invoke-rc.d cryptobox stop
|
|
|
|
true
|
|
|