1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-11-13 14:12:24 +08:00
NeoNetwork/vpn/tinc/tinc-up

15 lines
192 B
Text
Raw Normal View History

2019-11-03 14:28:40 +08:00
#!/bin/sh
IP=""
PEER=""
2020-04-20 13:04:50 +08:00
case "`uname`" in
2019-11-03 14:28:40 +08:00
Linux)
ip link set "$INTERFACE" up
ip addr add "$IP" peer "$PEER" dev "$INTERFACE"
2019-11-03 14:28:40 +08:00
;;
*BSD)
ifconfig "$INTERFACE" "$IP" "$PEER"
2019-11-03 14:28:40 +08:00
;;
esac