reboot if reload fails

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

No files matched your search

+7 -2
View File
@@ -22,8 +22,13 @@ check_brcm() {
# reload mod
reload_brcm() {
rmmod brcmfmac
modprobe brcmfmac
if ! modprobe -r brcmfmac; then
return 1
fi
if ! modprobe brcmfmac; then
return 1
fi
return 0
}
# starts mon0