mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			
		
			
				
	
	
		
			25 lines
		
	
	
		
			682 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
			
		
		
	
	
			25 lines
		
	
	
		
			682 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
| #!/bin/sh
 | |
| #
 | |
| # Change Atheros MCS 
 | |
| # Author: Tipo Man
 | |
| 
 | |
| case "$1" in
 | |
| 	"1")	   
 | |
| 	  echo '1-1' > /sys/bus/usb/drivers/usb/unbind
 | |
| 	  rm /lib/firmware/ath9k_htc/htc_9271-1.4.0.fw
 | |
| 	  ln -s /lib/firmware/ath9k_htc/htc_9271.fw.1 /lib/firmware/ath9k_htc/htc_9271-1.4.0.fw	  
 | |
| 	  echo '1-1' > /sys/bus/usb/drivers/usb/bind
 | |
| 	  echo "Loaded firmware with MCS"$1
 | |
| 	;;
 | |
| 	"3")		
 | |
| 	  echo '1-1' > /sys/bus/usb/drivers/usb/unbind
 | |
| 	  rm /lib/firmware/ath9k_htc/htc_9271-1.4.0.fw
 | |
| 	  ln -s /lib/firmware/ath9k_htc/htc_9271.fw.3 /lib/firmware/ath9k_htc/htc_9271-1.4.0.fw
 | |
| 	  echo '1-1' > /sys/bus/usb/drivers/usb/bind
 | |
| 	  echo "Loaded firmware with MCS"$1
 | |
| 	;;
 | |
| 	*)
 | |
| 	  echo "Only MCS 1 or 3 supported!"
 | |
| 	;;
 | |
| esac
 |