cryptonas-branches/v0.2.1/cbox-tree.d/etc/init.d/cb-mount-config.sh

27 lines
326 B
Bash
Raw Normal View History

2005-10-17 13:59:08 +02:00
#!/bin/sh
set -eu
# parse config file
. /etc/cryptobox/cryptobox.conf
ACTION=help
[ $# -gt 0 ] && ACTION="$1"
case "$ACTION" in
start )
$CB_SCRIPT config-up
;;
stop )
$CB_SCRIPT config-down
;;
restart )
$0 stop
$0 start
;;
* )
echo "Syntax: `basename $0` { start | stop | restart }"
echo
;;
esac