mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-10-29 13:04:27 -04:00 
			
		
		
		
	Add script to detect soekris board of net4801 and net4826. Patch from: kentarou matsuyama <matsuyama@thinktube.com> SVN-Revision: 25102
		
			
				
	
	
		
			20 lines
		
	
	
		
			247 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			247 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| net48xx_board_name () {
 | |
|     local name
 | |
|     local pci=`wc -l /proc/bus/pci/devices`
 | |
| 
 | |
|     case "$pci" in
 | |
| 	*"8"*)
 | |
| 	    name="net4826"
 | |
| 	    ;;
 | |
| 	*1[0-4]*)
 | |
| 	    name="net4801"
 | |
| 	    ;;
 | |
| 	*)
 | |
| 	    name="net4826"
 | |
| 	    ;;
 | |
|     esac
 | |
|     echo $name
 | |
| }
 |