summaryrefslogtreecommitdiff
path: root/roles/ws/minet/templates/connections/manualWire.j2
blob: ea609bb1cd9b093f21c5aa5aa66ad559b7d6649f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

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