~Add i18n install set

This commit is contained in:
juewuy
2026-01-18 17:57:17 +08:00
parent 6aa56b0c29
commit 48fd622ba2
3 changed files with 4 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ echo "** ShellCrash **"
echo "** by Juewuy **"
echo "***********************************************"
language=chs
[ -z "$url" ] && url="https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master"
# 内置工具

View File

@@ -7,6 +7,7 @@ echo "** ShellCrash **"
echo "** by Juewuy **"
echo "***********************************************"
language=en
[ -z "$url" ] && url="https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master"
# Internal Tools

View File

@@ -101,6 +101,8 @@ grep -q 'firewall_mod' "$CRASHDIR/configs/ShellClash.cfg" 2>/dev/null || {
}
#设置更新地址
[ -n "$url" ] && setconfig update_url $url
#设置语言
[ -n "$language" ] && echo "$language" > "$CRASHDIR/configs/i18n.cfg"
#设置环境变量
[ -w /opt/etc/profile ] && [ "$systype" = "Padavan" ] && profile=/opt/etc/profile
[ -w /jffs/configs/profile.add ] && profile=/jffs/configs/profile.add