Skip to content

Commit

Permalink
fix: updater: Fixed merlin_webs_update.sh script (#571)
Browse files Browse the repository at this point in the history
* Update merlin_webs_update.sh

* Update merlin_webs_update.sh

* Update merlin_webs_update.sh
  • Loading branch information
ExtremeFiretop authored Apr 8, 2024
1 parent 0ed2ce1 commit fbebe47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release/src/router/rom/webs_scripts/merlin_webs_update.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
set -x;
set -u;
wget_options="-q -t 2 -T 30"

fwsite="https://raw.githubusercontent.com/gnuton/asuswrt-merlin.ng/master/updates/"
Expand Down Expand Up @@ -37,13 +37,13 @@ if [ "$?" != "0" ]; then
nvram set webs_state_error=1
else

fullver=$(grep $model /tmp/wlan_update.txt | sed s/.*#FW//;)
fullver="$(grep "$model" /tmp/wlan_update.txt | tail -n1 | sed 's/.*#FW//')"
fullver=$(echo $fullver | sed s/#.*//;)
firmbase=$(echo $fullver | cut -d. -f1)
firmver=$(echo $fullver | cut -d. -f2)
buildno=$(echo $fullver | cut -d. -f3)
extendno=$(grep $model /tmp/wlan_update.txt | sed s/.*#EXT//;)
extendno="$(grep "$model" /tmp/wlan_update.txt | tail -n1 | sed 's/.*#EXT//')"
extendno=$(echo $extendno | sed s/#.*//;)
lextendno=$(echo $extendno | sed s/-g.*//;)
Expand Down

0 comments on commit fbebe47

Please sign in to comment.