lantiq: fix board detection helpers
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36444
This commit is contained in:
		@@ -1,9 +1,9 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
lantiq_board_id() {
 | 
			
		||||
	grep "^system type" /proc/cpuinfo | sed "s/system type.*: \(.*\)/\1/g" | sed "s/.* - \(.*\) - .*/\1/g"
 | 
			
		||||
	grep "^machine" /proc/cpuinfo | sed "s/machine.*: \(.*\)/\1/g" | sed "s/\(.*\) - .*/\1/g"             
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
lantiq_board_name() {
 | 
			
		||||
	grep "^system type" /proc/cpuinfo | sed "s/system type.*: \(.*\)/\1/g" | sed "s/.* - \(.*\)/\1/g"
 | 
			
		||||
	grep "^machine" /proc/cpuinfo | sed "s/machine.*: \(.*\)/\1/g" | sed "s/.* - \(.*\)/\1/g"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user