#!/usr/bin/env sh set -x case $1 in "enable") systemctl --user stop syncthing sudo systemctl start tinc ;; "disable") systemctl --user start syncthing sudo systemctl stop tinc ;; *) echo "Invalid action." echo "Usage: $0 enable|disable" exit ;; esac