This repository has been archived by the owner on Nov 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
107 changed files
with
16,546 additions
and
15,315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 61 additions & 11 deletions
72
release/src/router/rom/webs_scripts/merlinr_webs_note.sh
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,83 @@ | ||
#!/bin/sh | ||
|
||
wget_timeout=`nvram get apps_wget_timeout` | ||
wget_options="-q -t 2 -T $wget_timeout --no-check-certificate" | ||
wget_options="-q -t 2 -T 30 --no-check-certificate" | ||
|
||
dl_path_SQ="https://dlcdnets.asus.com/pub/ASUS/LiveUpdate/Release/Wireless_SQ" | ||
dl_path_SQ_beta="https://dlcdnets.asus.com/pub/ASUS/LiveUpdate/Release/Wireless_SQ/app" | ||
dl_path_file="https://update.paldier.com" | ||
|
||
nvram set cfg_note=0 | ||
get_preferred_lang=`nvram get preferred_lang` | ||
LANG="$get_preferred_lang" | ||
|
||
# get release note | ||
forsq=`nvram get apps_sq` | ||
if [ -z "$forsq" ]; then | ||
forsq=0 | ||
fi | ||
|
||
echo "---- Get amas release note start ----" >> /tmp/webs_upgrade.log | ||
if [ $# != 2 ]; then | ||
echo "---- no model name or version ----" >> /tmp/webs_note.log | ||
echo "---- no model name or version ----" >> /tmp/webs_upgrade.log | ||
nvram set cfg_note=2 | ||
exit 0 | ||
fi | ||
|
||
new_firm=`echo $2 | sed s/'\.'/_/4 | sed s/'\.'//g;` | ||
echo "---- $new_firm ----" >> /tmp/webs_note.log | ||
echo "---- $1 $new_firm ----" >> /tmp/webs_upgrade.log | ||
releasenote_file=$1_"$new_firm"_"$LANG"_note.zip | ||
releasenote_file_US=$1_"$new_firm"_US_note.zip | ||
releasenote_path="/tmp/release_note.txt" | ||
echo "---- download real release note for $1 ----" >> /tmp/webs_note.log | ||
wget $wget_options https://update.paldier.com/$releasenote_file -O $releasenote_path | ||
if [ "$?" != "0" ]; then | ||
wget $wget_options https://update.paldier.com/$releasenote_file_US -O $releasenote_path | ||
|
||
wget_release="" | ||
wget_release2="" | ||
if [ "$forsq" -ge 2 ] && [ "$forsq" -le 9 ]; then | ||
echo "---- download SQ beta_user release note ${dl_path_SQ_beta}${forsq}/$releasenote_file ----" >> /tmp/webs_upgrade.log | ||
wget $wget_options ${dl_path_SQ_beta}${forsq}/$releasenote_file -O $releasenote_path | ||
wget_release=$? | ||
echo "---- [LiveUpdate] wget pLang release note, exit code: ${wget_release} ----" >> /tmp/webs_upgrade.log | ||
if [ "$wget_release" != "0" ]; then | ||
echo "---- download SQ beta_user release note ${dl_path_SQ_beta}${forsq}/$releasenote_file_US ----" >> /tmp/webs_upgrade.log | ||
wget $wget_options ${dl_path_SQ_beta}${forsq}/$releasenote_file_US -O $releasenote_path | ||
wget_release2=$? | ||
echo "---- [LiveUpdate] wget US release note, exit code: ${wget_release2} ----" >> /tmp/webs_upgrade.log | ||
fi | ||
elif [ "$forsq" == "1" ]; then | ||
echo "---- download SQ release note ${dl_path_SQ}/$releasenote_file ----" >> /tmp/webs_upgrade.log | ||
wget $wget_options ${dl_path_SQ}/$releasenote_file -O $releasenote_path | ||
wget_release=$? | ||
echo "---- [LiveUpdate] wget pLang release note, exit code: ${wget_release} ----" >> /tmp/webs_upgrade.log | ||
if [ "$wget_release" != "0" ]; then | ||
echo "---- download SQ release note ${dl_path_SQ}/$releasenote_file_US ----" >> /tmp/webs_upgrade.log | ||
wget $wget_options ${dl_path_SQ}/$releasenote_file_US -O $releasenote_path | ||
wget_release2=$? | ||
echo "---- [LiveUpdate] wget US release note, exit code: ${wget_release2} ----" >> /tmp/webs_upgrade.log | ||
fi | ||
else | ||
echo "---- download real release note ${dl_path_file} for $1 ----" >> /tmp/webs_upgrade.log | ||
wget $wget_options ${dl_path_file}/$releasenote_file -O $releasenote_path | ||
wget_release=$? | ||
echo "---- [LiveUpdate] wget pLang release note, exit code: ${wget_release} ----" >> /tmp/webs_upgrade.log | ||
if [ "$wget_release" != "0" ]; then | ||
echo "---- download real release note ${dl_path_file}/$releasenote_file_US ----" >> /tmp/webs_upgrade.log | ||
wget $wget_options ${dl_path_file}/$releasenote_file_US -O $releasenote_path | ||
wget_release2=$? | ||
echo "---- [LiveUpdate] wget US release note, exit code: ${wget_release2} ----" >> /tmp/webs_upgrade.log | ||
fi | ||
fi | ||
echo "---- https://update.paldier.com/$releasenote_file ----" >> /tmp/webs_note.log | ||
|
||
if [ "$?" != "0" ] || [ ! -s $releasenote_path ]; then | ||
echo "---- download release note failed ----" >> /tmp/webs_note.log | ||
if [ "$wget_release" != "0" ] && [ "$wget_release2" != "0" ]; then | ||
echo "---- download release note failed ----" >> /tmp/webs_upgrade.log | ||
nvram set cfg_note=3 | ||
exit 0 | ||
elif [ ! -s $releasenote_path ]; then | ||
echo "---- no exist release note ----" >> /tmp/webs_upgrade.log | ||
nvram set cfg_note=3 | ||
exit 0 | ||
else | ||
echo "---- Get release note successfully ----" >> /tmp/webs_upgrade.log | ||
fi | ||
|
||
echo "---- Get release note end. ----" >> /tmp/webs_upgrade.log | ||
nvram set cfg_note=1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#http://clang.llvm.org/docs/ClangFormatStyleOptions.html | ||
|
||
BasedOnStyle: LLVM | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
UseTab: ForContinuationAndIndentation | ||
MaxEmptyLinesToKeep: 1 | ||
AllowShortFunctionsOnASingleLine: Empty | ||
BreakBeforeBraces: Linux | ||
ColumnLimit: 120 |
20 changes: 20 additions & 0 deletions
20
release/src/router/smartdns/.github/ISSUE_TEMPLATE/feature.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: 需求建议 | ||
about: 需求建议描述 | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**需求应用场景** | ||
请描述需求应用的场景和方式。 | ||
|
||
**建议的方案** | ||
实现上述场景建议的方案。 | ||
|
||
**设备信息** | ||
1. 设备信息(CPU,厂家) | ||
|
||
2. 固件信息 | ||
|
29 changes: 29 additions & 0 deletions
29
release/src/router/smartdns/.github/ISSUE_TEMPLATE/issue.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: 问题报告 | ||
about: 问题现象描述 | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**问题现象** | ||
简要描述问题出现的现象 | ||
|
||
**运行环境** | ||
1. 固件型号 | ||
|
||
2. 运营商 | ||
|
||
**重现步骤** | ||
1. 上游DNS配置。 | ||
|
||
2. 访问的域名。 | ||
|
||
|
||
**信息收集** | ||
1. 将/var/log/smrtdns.log日志作为附件上传。 | ||
2. 如进程异常,请将coredump功能开启,上传coredump信息文件。 | ||
在自定义界面,开启设置->自定义设置->生成coredump配置,重现问题后提交coredump文件 | ||
coredump文件在/tmp目录下 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.vscode | ||
.o | ||
.DS_Store | ||
.swp. |
Oops, something went wrong.