source:
vbox/trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/checkforrunningvms@
31655
最後變更 在這個檔案從31655是 31655,由 提交於 15 年 前 | |
---|---|
|
|
檔案大小: 311 位元組 |
行 | |
---|---|
1 | #!/bin/sh |
2 | |
3 | # |
4 | # Copyright (C) 2008-2010 Oracle Corporation |
5 | # |
6 | # Use only with permission. |
7 | # |
8 | |
9 | GREP=/usr/bin/grep |
10 | PS=/bin/ps |
11 | |
12 | RESULT=0 |
13 | |
14 | # Check if there are running vms |
15 | PROCS=`${PS} -e | ${GREP} -E "VirtualBoxVM.*startvm|VBoxNetDHCP" | ${GREP} -v grep` |
16 | if [ "${PROCS}x" != "x" ]; then |
17 | RESULT=1; |
18 | fi |
19 | |
20 | exit $RESULT |
注意:
瀏覽 TracBrowser
來幫助您使用儲存庫瀏覽器