1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-22 19:46:19 +00:00
Lakka-LibreELEC/packages/addons/service/tinc/source/config/subnet-up
2018-03-25 20:20:07 +02:00

7 lines
141 B
Bash

#!/bin/sh
if [ "$NAME" == "$NODE" ]; then
ip addr replace "$SUBNET" dev "$INTERFACE"
else
ip route replace "$SUBNET" dev "$INTERFACE"
fi