mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Workaround for Ring expansion failed
This commit is contained in:
parent
408dbe10e0
commit
9c72af5309
1 changed files with 7 additions and 0 deletions
|
@ -745,6 +745,13 @@ if [ "$(uci -q get glorytun.vpn.enable)" = "1" ] && [ "$(uci -q get glorytun.vpn
|
|||
uci -q commit openmptcprouter
|
||||
fi
|
||||
|
||||
if [ -n "$(logread | tail -n 2 | grep 'Ring expansion failed')" ]; then
|
||||
_log "Workaround Ring expansion failed problem"
|
||||
echo 1 > /sys/bus/pci/devices/0000:00:00.0/remove
|
||||
sleep 2
|
||||
echo 1 > /sys/bus/pci/rescan
|
||||
fi
|
||||
|
||||
#if [ "$(uci -q show openmptcprouter | grep get_config=\'1\')" != "" ] || [ "$(uci -q show openmptcprouter | grep admin_error=\'1\')" != "" ]; then
|
||||
# /etc/init.d/openmptcprouter-vps restart >/dev/null 2>&1
|
||||
# sleep 5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue