Update runlansds2.sh

This commit is contained in:
Anime4000 2024-02-03 23:38:34 +08:00 committed by GitHub
parent 25aa2568ba
commit 81a5c6be12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 15 deletions

View File

@ -3,17 +3,16 @@
# RTL9601CI 2.5G bug fix:
# In order to 2.5G mode to work, it must execute default mode first, then
# 2.5G HiSGMII can be work after, it will apply flow id: "flow_id=128"
echo "=========================="
echo "Anime4000 2.5G HiSGMII Fix"
echo "=========================="
echo "Pause for few seconds to allow boot sequence to complete!"
sleep 45
lan_sds_mode=`flash get LAN_SDS_MODE | sed 's/LAN_SDS_MODE=//g'`
if [ "$lan_sds_mode" -ge 4 ]; then
echo "=========================="
echo "Anime4000 2.5G HiSGMII Fix"
echo "=========================="
echo "Pause for few seconds to allow boot sequence to complete!"
sleep 45
lan_sds_mode=`flash get LAN_SDS_MODE | sed 's/LAN_SDS_MODE=//g'`
case "$lan_sds_mode" in
5)
echo 5 > /proc/lan_sds/lan_sds_cfg
@ -22,9 +21,9 @@ if [ "$lan_sds_mode" -ge 4 ]; then
echo 4 > /proc/lan_sds/lan_sds_cfg
;;
esac
echo "=========================="
echo "Anime4000 2.5G HiSGMII Fix"
echo "=========================="
echo "2.5G HiSGMII Fix has been executed! Enjoy!"
fi
echo "=========================="
echo "Anime4000 2.5G HiSGMII Fix"
echo "=========================="
echo "2.5G HiSGMII Fix has been executed! Enjoy!"