mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-10 23:41:22 +00:00
~Add i18n install set
This commit is contained in:
@@ -7,6 +7,7 @@ echo "** ShellCrash **"
|
|||||||
echo "** by Juewuy **"
|
echo "** by Juewuy **"
|
||||||
echo "***********************************************"
|
echo "***********************************************"
|
||||||
|
|
||||||
|
language=chs
|
||||||
[ -z "$url" ] && url="https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master"
|
[ -z "$url" ] && url="https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master"
|
||||||
|
|
||||||
# 内置工具
|
# 内置工具
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ echo "** ShellCrash **"
|
|||||||
echo "** by Juewuy **"
|
echo "** by Juewuy **"
|
||||||
echo "***********************************************"
|
echo "***********************************************"
|
||||||
|
|
||||||
|
language=en
|
||||||
[ -z "$url" ] && url="https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master"
|
[ -z "$url" ] && url="https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master"
|
||||||
|
|
||||||
# Internal Tools
|
# Internal Tools
|
||||||
|
|||||||
@@ -101,6 +101,8 @@ grep -q 'firewall_mod' "$CRASHDIR/configs/ShellClash.cfg" 2>/dev/null || {
|
|||||||
}
|
}
|
||||||
#设置更新地址
|
#设置更新地址
|
||||||
[ -n "$url" ] && setconfig update_url $url
|
[ -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 /opt/etc/profile ] && [ "$systype" = "Padavan" ] && profile=/opt/etc/profile
|
||||||
[ -w /jffs/configs/profile.add ] && profile=/jffs/configs/profile.add
|
[ -w /jffs/configs/profile.add ] && profile=/jffs/configs/profile.add
|
||||||
|
|||||||
Reference in New Issue
Block a user