cryptonas/cryptobox.conf.d/etc/rcS.d/S37cb-network.sh

24 lines
297 B
Bash
Raw Normal View History

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