#!/bin/sh SHORT_NAME="elevateforumwire" DESC_NAME="elevate Forum 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 ifconfig $INTERFACE 192.168.84.78 netmask 255.255.255.0 ip addr add dev $INTERFACE 109.73.158.78 ip route add default via 192.168.84.254 src 109.73.158.78 echo "domain spreadspace.org\nnameserver 217.29.144.65\nnameserver 217.29.144.66" | resolvconf -a $INTERFACE ;; stop) echo "Disconnecting from $DESC_NAME" resolvconf -d $INTERFACE deactivate_interface $INTERFACE $MODULE_NAME ;; *) exit 1 ;; esac