Skip to content

Commit

Permalink
webui: Updated webs scripts to get firmware info from gnuton's github
Browse files Browse the repository at this point in the history
  • Loading branch information
zaloisio committed Dec 18, 2020
1 parent 73dfc76 commit e4245dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion release/src/router/rom/webs_scripts/merlin_webs_note.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ else
echo "Merlin FW" >> /tmp/webs_note.log
releasenote_file=$(nvram get webs_state_info_am)_note.txt
releasenote_file_US=$releasenote_file
fwsite="https://fwupdate.asuswrt-merlin.net"
fwsite="https://gnuton.github.io/asuswrt-merlin.ng/updates"
fwsiteSQ=$fwsite"/test"
fi
releasenote_path="/tmp/release_note.txt"
Expand Down
12 changes: 6 additions & 6 deletions release/src/router/rom/webs_scripts/merlin_webs_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

wget_options="-q -t 2 -T 30"

fwsite="https://fwupdate.asuswrt-merlin.net"
fwsite="https://gnuton.github.io/asuswrt-merlin.ng/updates"

nvram set webs_state_update=0 # INITIALIZING
nvram set webs_state_flag=0 # 0: Don't do upgrade 1: Do upgrade
Expand All @@ -20,10 +20,10 @@ current_buildno=$(nvram get buildno | cut -d. -f2)
current_extendno=$(nvram get extendno)

# Overload extendno: alpha is 11-19, beta is 51-59, release is 100-109.
current_extendno=$(echo $current_extendno | sed s/-g.*//;)
current_extendno=$(echo $current_extendno | sed "s/^[0-9]$/10&/;")
current_extendno=$(echo $current_extendno | sed s/^alpha/1/;)
current_extendno=$(echo $current_extendno | sed s/^beta/5/;)
#current_extendno=$(echo $current_extendno | sed s/-g.*//;)
#current_extendno=$(echo $current_extendno | sed "s/^[0-9]$/10&/;")
#current_extendno=$(echo $current_extendno | sed s/^alpha/1/;)
#current_extendno=$(echo $current_extendno | sed s/^beta/5/;)

# get firmware information
forsq=$(nvram get apps_sq)
Expand Down Expand Up @@ -84,7 +84,7 @@ else
fi
fi
elif [ "$current_buildno" -eq "$buildno" ]; then
if [ "$current_extendno" -lt "$lextendno" ]; then
if [ "${current_extendno}" \< "${extendno}" ]; then
echo "---- lextendno: $lextendno ----" >> /tmp/webs_upgrade.log
nvram set webs_state_flag=1 # Do upgrade
if [ "$IS_SUPPORT_NOTIFICATION_CENTER" != "" ]; then
Expand Down

0 comments on commit e4245dc

Please sign in to comment.