diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-06-07 13:18:35 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-06-08 17:31:10 +0300 |
commit | 1357ed7240f47abbdce45c4fbd6673b2669afa3a (patch) | |
tree | d282a70e7dad7e088ea9e02979bb3224c560f705 /etc/library.sh | |
parent | 332523b9f91e846c00f6540cfcfdc4d774d9e6a5 (diff) |
refactor QEMU ncp construction
Diffstat (limited to 'etc/library.sh')
-rwxr-xr-x | etc/library.sh | 1 |
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 |