blob: 6ee38db9cb0b0e18149326acc18a7bf8ffd729f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
SHORT_NAME="0xffwire"
DESC_NAME="Funkfeuer Freenet 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 10.12.233.11 netmask 255.255.0.0
olsrd -f /etc/olsrd/olsrd.wire.conf
echo "domain graz.funkfeuer.at\nnameserver 10.12.0.10" | resolvconf -a $INTERFACE
;;
stop)
echo "Disconnecting from $DESC_NAME"
resolvconf -d $INTERFACE
killall olsrd
deactivate_interface $INTERFACE $MODULE_NAME
;;
*)
exit 1
;;
esac
|