Revert "mvebu: migrate led and network setup to board detection framework"
Roll back the mvebu conversion to board detection code as we need to fix some strcutural issues first. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47597
This commit is contained in:
		
							
								
								
									
										8
									
								
								target/linux/mvebu/base-files/etc/board.d/01_leds → target/linux/mvebu/base-files/etc/uci-defaults/01_leds
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										8
									
								
								target/linux/mvebu/base-files/etc/board.d/01_leds → target/linux/mvebu/base-files/etc/uci-defaults/01_leds
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							| @@ -1,13 +1,11 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
| # | # | ||||||
| # Copyright (C) 2014-2015 OpenWrt.org | # Copyright (C) 2014 OpenWrt.org | ||||||
| # | # | ||||||
| 
 | 
 | ||||||
| . /lib/functions/uci-defaults-new.sh | . /lib/functions/uci-defaults.sh | ||||||
| . /lib/mvebu.sh | . /lib/mvebu.sh | ||||||
| 
 | 
 | ||||||
| board_config_update |  | ||||||
| 
 |  | ||||||
| board=$(mvebu_board_name) | board=$(mvebu_board_name) | ||||||
| 
 | 
 | ||||||
| case "$board" in | case "$board" in | ||||||
| @@ -34,6 +32,6 @@ armada-xp-linksys-mamba) | |||||||
| 
 | 
 | ||||||
| esac | esac | ||||||
| 
 | 
 | ||||||
| board_config_flush | ucidef_commit_leds | ||||||
| 
 | 
 | ||||||
| exit 0 | exit 0 | ||||||
							
								
								
									
										10
									
								
								target/linux/mvebu/base-files/etc/board.d/02_network → target/linux/mvebu/base-files/etc/uci-defaults/02_network
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										10
									
								
								target/linux/mvebu/base-files/etc/board.d/02_network → target/linux/mvebu/base-files/etc/uci-defaults/02_network
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							| @@ -3,10 +3,12 @@ | |||||||
| # Copyright (C) 2014-2015 OpenWrt.org | # Copyright (C) 2014-2015 OpenWrt.org | ||||||
| # | # | ||||||
| 
 | 
 | ||||||
| . /lib/functions/uci-defaults-new.sh | [ -e /etc/config/network ] && exit 0 | ||||||
| . /lib/mvebu.sh |  | ||||||
| 
 | 
 | ||||||
| board_config_update | touch /etc/config/network | ||||||
|  | 
 | ||||||
|  | . /lib/functions/uci-defaults.sh | ||||||
|  | . /lib/mvebu.sh | ||||||
| 
 | 
 | ||||||
| ucidef_set_interface_loopback | ucidef_set_interface_loopback | ||||||
| 
 | 
 | ||||||
| @@ -39,6 +41,6 @@ armada-xp-gp) | |||||||
| 	;; | 	;; | ||||||
| esac | esac | ||||||
| 
 | 
 | ||||||
| board_config_flush | uci commit network | ||||||
| 
 | 
 | ||||||
| exit 0 | exit 0 | ||||||
		Reference in New Issue
	
	Block a user
	 Jo-Philipp Wich
					Jo-Philipp Wich