mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-12 00:11:31 +00:00
~优化测试相关命令
~优化版本回退功能,现在支持回退到近期tags ~修复保守模式停止服务时未正确注销防火墙的bug ~修复小米设备因安装在u盘等导致自启命令不正确的bug
This commit is contained in:
@@ -240,18 +240,24 @@ case "$1" in
|
||||
main_menu
|
||||
;;
|
||||
-t)
|
||||
shtype=sh && [ -n "$(ls -l /bin/sh | grep -o dash)" ] && shtype=bash
|
||||
shtype=sh
|
||||
ckcmd bash && shtype=bash
|
||||
$shtype -x "$CRASHDIR"/menu.sh
|
||||
;;
|
||||
-s)
|
||||
"$CRASHDIR"/start.sh $2 $3 $4 $5 $6
|
||||
"$CRASHDIR"/start.sh "$2" "$3" "$4" "$5" "$6"
|
||||
;;
|
||||
-i)
|
||||
. "$CRASHDIR"/init.sh 2>/dev/null
|
||||
;;
|
||||
-st)
|
||||
shtype=sh && [ -n "$(ls -l /bin/sh | grep -o dash)" ] && shtype=bash
|
||||
$shtype -x "$CRASHDIR"/start.sh $2 $3 $4 $5 $6
|
||||
shtype=sh
|
||||
ckcmd bash && shtype=bash
|
||||
"$shtype" -x "$CRASHDIR"/starts/bfstart.sh
|
||||
. "$CRASHDIR"/starts/start_legacy.sh
|
||||
start_legacy "$COMMAND" 'shellcrash'
|
||||
"$shtype" -x "$CRASHDIR"/starts/afstart.sh
|
||||
"$CRASHDIR"/start.sh stop
|
||||
;;
|
||||
-d)
|
||||
shtype=sh && [ -n "$(ls -l /bin/sh | grep -o dash)" ] && shtype=bash
|
||||
|
||||
Reference in New Issue
Block a user