简体中文

This commit is contained in:
2024-09-25 03:29:17 +08:00
parent 7855bac9e1
commit 158a3058c3

View File

@@ -1,6 +1,6 @@
#!/system/bin/sh #!/system/bin/sh
if [ "$(whoami)" != root ]; then if [ "$(whoami)" != root ]; then
echo "你是憨批不給Root用你媽 爬" echo "需要ROOT权限"
exit 1 exit 1
fi fi
[[ -d /data/cache ]] && set -x 2> /data/cache/debug_output.log [[ -d /data/cache ]] && set -x 2> /data/cache/debug_output.log
@@ -11,20 +11,20 @@ tools_path="$MODDIR/tools"
Compression_rate=9 Compression_rate=9
script="${0##*/}" script="${0##*/}"
backup_version="V15.9.5" backup_version="V15.9.5"
[[ $SHELL = *mt* ]] && echo "勿使用MT管理器拓展包環境執行,請更換系統環境" && exit 2 [[ $SHELL = *mt* ]] && echo "勿使用MT过滤器扩展包环境执行,请更换系统环境" && exit 2
update_backup_settings_conf() { update_backup_settings_conf() {
echo "#0關閉音量鍵選擇 (如選項未設置,則強制使用音量鍵選擇) echo "#0关闭音量键选择 (如选项未设置,则强制使用音量键选择)
#1開啟音量鍵選擇 (如選項已設置,則跳過該選項提示) #1开启音量键选择
#2使用鍵盤輸入,適用於無音量鍵可用設備選擇 (如選項未設置,則強制使用鍵盤輸入) #2使用键盘输入
Lo="${Lo:-0}" Lo="${Lo:-0}"
#後台執行腳 #后台执行脚
0不能關閉當前終端,有壓縮速率 0不能关闭当前终端,有压缩速率
1開啟通知,有進度條,無壓縮速率 1开启通知,有进度条,无压缩速率
2開啟通知,無進度條,備份完成通知,無壓縮速率 2开启通知,无进度条,备份完成通知,无压缩速率
background_execution="${background_execution:-0}" background_execution="${background_execution:-0}"
#腳本語言設置 留空則自動識別系統語言環境並翻譯 #脚本语言设置 留空则自动识别系统语言环境并翻译
#1簡體中文 0繁體中文 #1簡體中文 0繁體中文
Shell_LANG="$Shell_LANG" Shell_LANG="$Shell_LANG"
@@ -383,7 +383,7 @@ get_version() {
echoRgb "$2" "0" echoRgb "$2" "0"
;; ;;
*) *)
echoRgb "keycheck錯誤" "0" echoRgb "keycheck错误" "0"
continue continue
;; ;;
esac esac
@@ -398,7 +398,7 @@ isBoolean() {
elif [[ $1 = 0 ]]; then elif [[ $1 = 0 ]]; then
nsx=false nsx=false
else else
echoRgb "$conf_path $2=$1寫錯誤,正值1or0" "0" echoRgb "$conf_path $2=$1写错误,正值1or0" "0"
exit 2 exit 2
fi fi
} }
@@ -408,8 +408,8 @@ echo_log() {
result=0 result=0
Set_back_0 Set_back_0
else else
echoRgb "$1敗,過世" "0" echoRgb "$1败,退出" "0"
[[ $3 = "" ]] && notification --tag="$RANDOM" --title="$2" --text="$1敗,過世" || notification --tag="$RANDOM" --title="$2" --text="$3$1敗,過世" [[ $3 = "" ]] && notification --tag="$RANDOM" --title="$2" --text="$1败,退出" || notification --tag="$RANDOM" --title="$2" --text="$3$1败,退出"
result=1 result=1
Set_back_1 Set_back_1
fi fi
@@ -423,7 +423,7 @@ kill_Serve() {
{ {
if [[ -e $TMPDIR/scriptTMP ]]; then if [[ -e $TMPDIR/scriptTMP ]]; then
scriptname="$(cat "$TMPDIR/scriptTMP")" scriptname="$(cat "$TMPDIR/scriptTMP")"
echoRgb "腳本殘留進程,將殺死後退出本,重新行一次\n -$scriptname" "0" echoRgb "脚本残留进程,将杀死后退出本,重新行一次\n -$scriptname" "0"
rm -rf "$TMPDIR/scriptTMP" rm -rf "$TMPDIR/scriptTMP"
process_name "$scriptname" process_name "$scriptname"
exit exit