Commit ad1aaaf7 authored by Guido Gunther's avatar Guido Gunther
Browse files

Robustify firmware update script

parent 83f0f3ea
Pipeline #58538 canceled with stages
in 35 seconds
......@@ -35,10 +35,10 @@ wifi_power() {
unload() {
systemctl stop bluetooth
rmmod bnep 2> /dev/null
rmmod rfcomm 2> /dev/null
rmmod bnep || true
rmmod rfcomm || true
systemctl stop NetworkManager
wifi_power off
wifi_power off
}
echo "Building driver"
......@@ -52,12 +52,12 @@ set -e
modprobe rsi_91x dev_oper_mode=13 rsi_zone_enabled=1
wifi_power on
sleep 1
echo "Loading redpine update modules to burn firmware"
echo "Loading rsi update modules to burn firmware"
modprobe rsi_sdio
sleep 5
echo "Unloading redpine update modules"
echo "Unloading rsi update modules"
unload
modprobe -r rsi_sdio
......@@ -75,4 +75,4 @@ wifi_power on
echo "Re-loading services"
systemctl start NetworkManager
systemctl start bluetooth
echo "You can reboot now"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment