mirror of
				https://github.com/NeoCloud/NeoNetwork.git
				synced 2025-11-03 22:24:38 -08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			192 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			15 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
 |