ramips: Remove base-files/lib/ramips.sh
Having converted the target to use device compatible, ramips.sh is obsolete now. The only remaining entry for the mt7688 evaluation board seems to be orphaned. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
		 Adrian Schmutzler
					Adrian Schmutzler
				
			
				
					committed by
					
						 Daniel Golle
						Daniel Golle
					
				
			
			
				
	
			
			
			 Daniel Golle
						Daniel Golle
					
				
			
						parent
						
							3b0264eddb
						
					
				
				
					commit
					e8d2d97498
				
			| @@ -1,9 +0,0 @@ | |||||||
| #!/bin/sh |  | ||||||
|  |  | ||||||
| do_ramips() { |  | ||||||
| 	. /lib/ramips.sh |  | ||||||
|  |  | ||||||
| 	ramips_board_detect |  | ||||||
| } |  | ||||||
|  |  | ||||||
| boot_hook_add preinit_main do_ramips |  | ||||||
| @@ -3,8 +3,6 @@ | |||||||
| # Copyright (C) 2013 OpenWrt.org | # Copyright (C) 2013 OpenWrt.org | ||||||
| # | # | ||||||
|  |  | ||||||
| . /lib/ramips.sh |  | ||||||
|  |  | ||||||
| ramips_set_preinit_iface() { | ramips_set_preinit_iface() { | ||||||
| 	RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350|MT7628|MT7688|MT7620|MT7621)"` | 	RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350|MT7628|MT7688|MT7620|MT7621)"` | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,25 +0,0 @@ | |||||||
| #!/bin/sh |  | ||||||
| # |  | ||||||
| # Copyright (C) 2010-2013 OpenWrt.org |  | ||||||
| # |  | ||||||
|  |  | ||||||
| ramips_board_detect() { |  | ||||||
| 	local machine |  | ||||||
| 	local name |  | ||||||
|  |  | ||||||
| 	machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo) |  | ||||||
|  |  | ||||||
| 	case "$machine" in |  | ||||||
| 	*"MT7688 evaluation"*) |  | ||||||
| 		name="mt7688" |  | ||||||
| 		;; |  | ||||||
| 	esac |  | ||||||
|  |  | ||||||
| 	# use generic board detect if no name is set |  | ||||||
| 	[ -z "$name" ] && return |  | ||||||
|  |  | ||||||
| 	[ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/" |  | ||||||
|  |  | ||||||
| 	echo "$name" > /tmp/sysinfo/board_name |  | ||||||
| 	echo "$machine" > /tmp/sysinfo/model |  | ||||||
| } |  | ||||||
		Reference in New Issue
	
	Block a user