diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-12-28 21:29:49 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-12-28 21:29:49 +0100 |
commit | 681f88d28fb3f1230f18bbdac23f75a9e62bd1b7 (patch) | |
tree | 0bb67d7144ca8785e0f06c30e7b1a6edf27e3907 /roles/ws/minet/templates/connections/manualWire.j2 | |
parent | add host ch-equinox-t450s (diff) |
ws/minet: initial version
Diffstat (limited to 'roles/ws/minet/templates/connections/manualWire.j2')
-rwxr-xr-x | roles/ws/minet/templates/connections/manualWire.j2 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/ws/minet/templates/connections/manualWire.j2 b/roles/ws/minet/templates/connections/manualWire.j2 new file mode 100755 index 00000000..837b4f15 --- /dev/null +++ b/roles/ws/minet/templates/connections/manualWire.j2 @@ -0,0 +1,25 @@ +#!/bin/sh +# +# Author: Christian Pointner <equinox@chaos-at-home.org> +# + +SHORT_NAME="manualwire" +DESC_NAME="manual WIRE" +INTERFACE="{{ ws_minet_wired_interface_name }}" +MODULE_NAME="{{ ws_minet_wired_interface_module }}" + +. /usr/local/lib/minet/minet_helpers.sh + +case "$1" in + start|"") + echo "Connecting with $DESC_NAME" + activate_interface $INTERFACE $MODULE_NAME + ;; + stop) + echo "Disconnecting from $DESC_NAME" + deactivate_interface $INTERFACE $MODULE_NAME + ;; + *) + exit 1 + ;; +esac |