cryptonas/cryptobox.conf.d/etc/init.d/cb-network.sh
lars fda9e3f445 moved validation from cbox to the host
logging greatly improved
background problem of initialization solved
umount_crypto cleaned
automatic style importing for validation
2005-07-25 11:02:47 +00:00

27 lines
328 B
Bash
Executable file

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