First commit

This commit is contained in:
2017-05-23 13:18:24 +02:00
parent d717531f6c
commit 459df6e30b
7 changed files with 63 additions and 2 deletions

6
scripts/subnet-down Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
if [ "$NODE" != "$HOSTNAME" ]
then
ip route delete $SUBNET dev $INTERFACE
fi

6
scripts/subnet-up Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
if [ "$NODE" != "$NAME" ]
then
ip route add $SUBNET dev $INTERFACE
fi

3
scripts/tinc-down Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
ip link set $INTERFACE down

7
scripts/tinc-up Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
ADDRESS=
ip address add $ADDRESS dev $INTERFACE
ip link set $INTERFACE up