1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-11-16 15:10:41 +08:00
NeoNetwork/vpn/tinc/tinc-up

14 lines
165 B
Text
Raw Normal View History

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