add FDE check
This commit is contained in:
parent
c40181bf7b
commit
12ad4a615d
3
cease.sh
3
cease.sh
@ -44,6 +44,9 @@ if vmctl show ${1%.txt} >/dev/null 2>&1; then
|
||||
IPV4=$(grep -A2 ${1%.txt} /etc/dhcpd.conf | awk '/fixed/ {print $2}' | tr -d ';')
|
||||
IPV6=$(grep -A3 ${1%.txt} /etc/dhcpd.conf | awk '/fixed-address-ipv6/ {print $2}' | tr -d ';')
|
||||
echo "a reset ${IPV4} ${IPV6}"
|
||||
if [ -f "${HOME}/vms/${1}-fde" ]; then
|
||||
rm -rf ${HOME}/vms/${1}-fde
|
||||
fi
|
||||
${BINPATH}/remove.pl ${1}
|
||||
${BINPATH}/deploy.pl
|
||||
if [[ -z ${DHCPD} ]]; then
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2019-2023 Mischa Peters <mischa @ openbsd.amsterdam>
|
||||
# Copyright (c) 2019-2024 Mischa Peters <mischa @ openbsd.amsterdam>
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this software for any
|
||||
# purpose with or without fee is hereby granted, provided that the above
|
||||
@ -26,11 +26,14 @@ done
|
||||
|
||||
CYCLES=$((${#VMS[*]}/${CPU}+1))
|
||||
echo "Starting ${#VMS[*]} VMs on ${CPU} CPUs in ${CYCLES} cycle(s), waiting ${SLEEP} seconds after each cycle."
|
||||
echo "Excluding FDE VMs."
|
||||
|
||||
COUNTER=0
|
||||
for i in ${VMS[*]}; do
|
||||
COUNTER=$((${COUNTER}+1))
|
||||
vmctl start ${i} ; sleep ${DELAY}
|
||||
if [ ! -f "${HOME}/vms/${i}.txt-fde" ]; then
|
||||
vmctl start ${i} ; sleep ${DELAY}
|
||||
fi
|
||||
if [ $COUNTER -eq $CPU ]; then
|
||||
sleep ${SLEEP}
|
||||
COUNTER=0
|
||||
|
Loading…
Reference in New Issue
Block a user