cryptonas/cryptobox.conf.d/etc/rcS.d/S22mount-cb-config.sh

24 lines
295 B
Bash
Executable file

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