Skip to content

Commit

Permalink
Add whonix
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Sep 15, 2023
1 parent c7e91a0 commit b488c7d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ function os_support() {
vanillaos \
void \
vxlinux \
whonix \
windows \
xerolinux \
xubuntu \
Expand Down Expand Up @@ -701,6 +702,10 @@ function releases_xerolinux() {
echo kde
}

function releases_whonix() {
echo 17.0.3.0
}

function releases_zorin() {
echo 16
}
Expand Down Expand Up @@ -1841,6 +1846,16 @@ function get_vxlinux() {
echo "${URL}/${ISO} ${HASH}"
}

function get_whonix() {
local HASH=""
local URL=""
local ISO="Whonix-Xfce-${RELEASE}.Intel_AMD64.qcow2.libvirt.xz"
local URL="https://download.whonix.org/libvirt/${RELEASE}/"

HASH=$(wget -q -O- "${URL}/Whonix-Xfce-${RELEASE}.sha512sums" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}

function unattended_windows() {
cat << 'EOF' > "${1}"
<?xml version="1.0" encoding="utf-8"?>
Expand Down Expand Up @@ -2226,6 +2241,19 @@ create_vm() {
ISO=$(ls ${VM_PATH} | grep -i '.iso' | grep -v '.zip')
fi

if [ ${OS} == "whonix" ] && [[ $ISO =~ ".xz" ]]; then
cd ${VM_PATH}
tar -xvf Whonix*.libvirt.xz
more WHONIX_BINARY_LICENSE_AGREEMENT
read -p "Are you agree? " -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
touch WHONIX_BINARY_LICENSE_AGREEMENT_accepted
else
touch WHONIX_BINARY_LICENSE_AGREEMENT_denied
exit 0
fi
fi

make_vm_config "${ISO}"
}

Expand Down

0 comments on commit b488c7d

Please sign in to comment.