#!/bin/sh
VERSION=260604
SCRIPT=$(readlink -f $0)
SCRIPTNAME=$(basename $SCRIPT)
SCRIPTDIR=$(dirname $SCRIPT)
if [ "$1" = "-v" ] ; then echo "$VERSION $SCRIPTNAME $SCRIPTDIR";exit 0; fi
if [ -e "$SCRIPTDIR/esc.sh" ] ; then . "$SCRIPTDIR/esc.sh"; fi
LOG=$LOGDIR/log-$SCRIPTNAME.log

#secure boot
esxcli system settings encryption get | grep "Secure Boot" | grep -q false
if [ $? != 0 ] ; then
	# secure boot ausschalten
	esxcli system settings encryption set --require-secure-boot=F
	/bin/backup.sh 0
else
	echo "secure boot is disabled"
fi
