First commit
This commit is contained in:
6
scripts/subnet-down
Executable file
6
scripts/subnet-down
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$NODE" != "$HOSTNAME" ]
|
||||
then
|
||||
ip route delete $SUBNET dev $INTERFACE
|
||||
fi
|
6
scripts/subnet-up
Executable file
6
scripts/subnet-up
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$NODE" != "$NAME" ]
|
||||
then
|
||||
ip route add $SUBNET dev $INTERFACE
|
||||
fi
|
3
scripts/tinc-down
Executable file
3
scripts/tinc-down
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
ip link set $INTERFACE down
|
7
scripts/tinc-up
Executable file
7
scripts/tinc-up
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
ADDRESS=
|
||||
|
||||
ip address add $ADDRESS dev $INTERFACE
|
||||
ip link set $INTERFACE up
|
||||
|
Reference in New Issue
Block a user