Skip to content

Commit 6947793

Browse files
author
eric-zhou
committed
添加转菊花效果
1 parent 331fb2e commit 6947793

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

init

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ get_port()
5151

5252

5353
run() {
54+
# 添加转菊花效果 -- 阿耀 2014-10-29
55+
loadingapp $PWD/loading.conf &
56+
local pid=$!
57+
5458
# 随机取得端口
5559
get_port;
5660
local port=$port_result
@@ -59,6 +63,9 @@ run() {
5963
$SSH -i $KEY_FILE -o UserKnownHostsFile="$KNOWN_HOSTS" \
6064
-g -NfR *:$port:*:22 [email protected]
6165

66+
# 停止转菊花
67+
kill $pid
68+
6269
messagebox 远程协助 "远程协助已开启,服务序号$port
6370
请在结束协助后点击结束退出远程协助。" 1 结束 "killall ssh"
6471
}

loading.conf

512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)