-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: 8.0.0->main after code freeze
- Loading branch information
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
layers/meta-opentrons/recipes-connectivity/networkmanager/files/dispatch-bounce-mlan0.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Detect when the wifi interface was downed because the driver crashed and reload it | ||
|
||
test "$NM_DISPATCHER_ACTION" = "down" || exit 0 | ||
test "$DEVICE_IFACE" = "mlan0" || exit 0 | ||
|
||
nmcli dev show mlan0 && exit 0 | ||
echo 'Detected mlan0 crash, unbinding/rebinding' | ||
|
||
echo 30b60000.mmc > /sys/bus/platform/drivers/sdhci-esdhc-imx/unbind | ||
sleep 1 | ||
echo 30b60000.mmc > /sys/bus/platform/drivers/sdhci-esdhc-imx/bind | ||
sleep 1 | ||
|
||
echo 'Restarting NetworkManager after mlan0 crash' | ||
systemctl restart NetworkManager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters