summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xroaming.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/roaming.sh b/roaming.sh
new file mode 100755
index 0000000..17b67b3
--- /dev/null
+++ b/roaming.sh
@@ -0,0 +1,20 @@
1#!/usr/bin/env sh
2
3set -x
4
5case $1 in
6 "enable")
7 systemctl --user stop syncthing
8 sudo systemctl start tinc
9 ;;
10 "disable")
11 systemctl --user start syncthing
12 sudo systemctl stop tinc
13 ;;
14 *)
15 echo "Invalid action."
16 echo "Usage: $0 enable|disable"
17 exit
18 ;;
19esac
20