mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Merge pull request #2964 from holta/firmware-warning-overzealous
Explain how to turn off overzealous WiFi firmware warnings
This commit is contained in:
		
						commit
						9053abcfc9
					
				
					 2 changed files with 11 additions and 5 deletions
				
			
		|  | @ -50,13 +50,13 @@ if ! $(diff -q /lib/firmware/brcm/brcmfmac43430-sdio.clm_blob.iiab /lib/firmware | |||
| fi | ||||
| 
 | ||||
| if [ "$WARN" = "1" ]; then | ||||
|     echo -e "\n \033[31;5mWiFi Firmware has been replaced, per iiab/iiab#823.\033[0m" | ||||
|     echo -e " \033[31;5mReboot is required to activate.\033[0m\n" | ||||
|     echo -e "\n \e[41;1mWiFi Firmware has been replaced, per iiab/iiab#823.\e[0m" | ||||
|     echo -e " \e[41;1mReboot is required to activate.\e[0m\n" | ||||
|     touch /.fw_replaced | ||||
|     #echo "rebooting..." | ||||
|     #reboot | ||||
| else | ||||
|     echo -e " WiFi Firmware check \033[32;5mPASSED\033[0m, per iiab/iiab#823." | ||||
|     echo -e " WiFi Firmware check \e[42;1mPASSED\e[0m, per iiab/iiab#823."    # Or \e[92m for green on black | ||||
|     echo -e " (Assuming you've rebooted since it was replaced!)\n" | ||||
|     if [ -f /.fw_replaced ]; then | ||||
|         rm /.fw_replaced | ||||
|  |  | |||
|  | @ -1,6 +1,12 @@ | |||
| #!/bin/bash | ||||
| 
 | ||||
| if [ -f /.fw_replaced ]; then | ||||
|     echo -e "\n \033[31;5mWiFi Firmware has been replaced, per iiab/iiab#823.\033[0m" | ||||
|     echo -e " \033[31;5mReboot is required to activate.\033[0m\n" | ||||
|     echo -e "\n \e[41;1mWiFi Firmware has been replaced, per iiab/iiab#823.\e[0m" | ||||
|     if grep -q '^wifi_hotspot_capacity_rpi_fix:\s\+[fF]alse\b' /etc/iiab/local_vars.yml ; then | ||||
|         echo -e " \e[100;1mIf you want these warnings to stop, run:\e[0m" | ||||
|         echo | ||||
|         echo -e " \e[100;1msudo rm /.fw_replaced\e[0m\n" | ||||
|     else | ||||
|         echo -e " \e[41;1mReboot is required to activate.\e[0m\n" | ||||
|     fi | ||||
| fi | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue