1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/firmware/templates/iiab-firmware-warn.sh

13 lines
449 B
Bash
Raw Normal View History

2020-08-02 18:36:56 +00:00
#!/bin/bash
2020-08-02 18:36:56 +00:00
if [ -f /.fw_replaced ]; then
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
2020-08-02 18:36:56 +00:00
fi