cryptonas/cbox-tree.d/etc/init.d/cb-network.sh

27 lines
328 B
Bash
Raw Normal View History

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