mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-11 04:02:23 +08:00
14 lines
192 B
Bash
14 lines
192 B
Bash
#!/bin/sh
|
|
|
|
IP=""
|
|
PEER=""
|
|
|
|
case "`uname`" in
|
|
Linux)
|
|
ip link set "$INTERFACE" up
|
|
ip addr add "$IP" peer "$PEER" dev "$INTERFACE"
|
|
;;
|
|
*BSD)
|
|
ifconfig "$INTERFACE" "$IP" "$PEER"
|
|
;;
|
|
esac
|