cryptonas/debian/prerm

20 lines
442 B
Plaintext
Raw Normal View History

2005-12-01 19:22:05 +01:00
#!/bin/sh
# 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 . "$CONF_FILE"
else echo "[$(basename $0)] - configuration file ($CONF_FILE) not found!" >&2
exit 1
fi
2005-12-01 20:20:36 +01:00
invoke-rc.d cryptobox stop
true