reboot if reload fails

This commit is contained in:
dadav
2020-04-18 11:17:46 +02:00
parent 2dee3987d4
commit 1be17b1f99
3 changed files with 12 additions and 4 deletions

View File

@ -11,7 +11,10 @@ fi
# check if wifi driver is bugged
if ! check_brcm; then
reload_brcm
if ! reload_brcm; then
echo "Could not reload wifi driver. Reboot"
reboot
fi
sleep 10
fi