Skip to content

Commit

Permalink
添加转菊花效果
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-zhou committed Oct 30, 2014
1 parent 331fb2e commit 6947793
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions init
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ get_port()


run() {
# 添加转菊花效果 -- 阿耀 2014-10-29
loadingapp $PWD/loading.conf &
local pid=$!

# 随机取得端口
get_port;
local port=$port_result
Expand All @@ -59,6 +63,9 @@ run() {
$SSH -i $KEY_FILE -o UserKnownHostsFile="$KNOWN_HOSTS" \
-g -NfR *:$port:*:22 [email protected]

# 停止转菊花
kill $pid

messagebox 远程协助 "远程协助已开启,服务序号$port
请在结束协助后点击结束退出远程协助。" 1 结束 "killall ssh"
}
Expand Down
Binary file added loading.conf
Binary file not shown.

0 comments on commit 6947793

Please sign in to comment.