Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-06-07 13:18:35 +0300
committernachoparker <nacho@ownyourbits.com>2017-06-08 17:31:10 +0300
commit1357ed7240f47abbdce45c4fbd6673b2669afa3a (patch)
treed282a70e7dad7e088ea9e02979bb3224c560f705 /etc/library.sh
parent332523b9f91e846c00f6540cfcfdc4d774d9e6a5 (diff)
refactor QEMU ncp construction
Diffstat (limited to 'etc/library.sh')
-rwxr-xr-xetc/library.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/library.sh b/etc/library.sh
index d623b1db..5cfd1cba 100755
--- a/etc/library.sh
+++ b/etc/library.sh
@@ -31,6 +31,7 @@ function launch_install_qemu()
IMGOUT="$BASE-stage$NUM"
cp -v $IMG $IMGOUT || return 1 # take a copy of the input image for processing ( append "-stage1" )
+ pgrep qemu-system-arm &>/dev/null && { echo -e "QEMU instance already running. Abort..."; return 1; }
launch_qemu $IMGOUT &
sleep 10
wait_SSH $IP