mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Add lan5 in omr-network default script
This commit is contained in:
		
							parent
							
								
									25ed929191
								
							
						
					
					
						commit
						4fbed72689
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -346,6 +346,10 @@ if [ "$(uci -q show network.wan1 | grep multipath)" = "" ] && [ -z "$(uci -q get | |||
| 		_setup_wan_interface wan4 lan4 on | ||||
| 		_macaddr=$(uci -q get "network.lan4.macaddr") | ||||
| 		_setup_macaddr "wan4" "${_macaddr:-$(dd if=/dev/urandom bs=1024 count=1 2>/dev/null | md5sum | sed -e 's/^\(..\)\(..\)\(..\)\(..\)\(..\)\(..\).*$/\1:\2:\3:\4:\5:\6/' -e 's/^\(.\)[13579bdf]/\10/')}" | ||||
| 		if [ -d /sys/class/net/lan5 -o -n "$(ip link | grep ' lan5')" ]; then | ||||
| 			_macaddr=$(uci -q get "network.lan5.macaddr") | ||||
| 			_setup_macaddr "wan5" "${_macaddr:-$(dd if=/dev/urandom bs=1024 count=1 2>/dev/null | md5sum | sed -e 's/^\(..\)\(..\)\(..\)\(..\)\(..\)\(..\).*$/\1:\2:\3:\4:\5:\6/' -e 's/^\(.\)[13579bdf]/\10/')}" | ||||
| 		fi | ||||
| 	elif [ -d /sys/class/net/wan1 ] || [ -n "$(ip link | grep ' wan1')" ]; then | ||||
| 		if [ -d /sys/class/net/wan2 ] || [ -n "$(ip link | grep ' wan2')" ]; then | ||||
| 			_setup_wan_interface wan1 wan1 master | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue